is an option which provides information about the structure of a matrix.
Details and Options
Examples
Basic Examples
See Also
Related Guides
GroupTheory`
GroupTheory`
GOMatrixType
is an option which provides information about the structure of a matrix.
Details and Options
- Typical settings for GOMatrixType are:
-
"General" the matrix is a general matrix "Symmetric" the matrix is symmetric
Examples
Basic Examples (1)
Needs["GroupTheory`"]lm = 10;
mat = Table[0, {lm}, {lm}];
Do[
r1 = RandomInteger[{1, lm}];
r2 = RandomInteger[{1, lm}];
mat[[r1, r2]] = k;
mat[[r2, r1]] = k
, {k, 1, 10}]mat//MatrixFormThe matrix is stored in compact form. All nonzero elements are stored.
matc = GTCompactStore[mat]Less information has to be stored, if the matrix is symmetric.
matcs = GTCompactStore[mat, GOMatrixType -> "Symmetric"]Create the full matrix from the compact form.
matrs = GTCompactStore[matcs, GOCompact -> True];matrs//MatrixFormmat === matrsOnly the lower triangle is given. The information that the matrix is symmetric is necessary going back to the full matrix.
matrs = GTCompactStore[matcs, GOCompact -> True, GOMatrixType -> "Symmetric"];mat === matrsSee Also
Related Guides
-
▪
- Options