GOMatrixType
  • See Also
    • GTCompactStore
    • GOCompact
  • Related Guides
    • Options
    • See Also
      • GTCompactStore
      • GOCompact
    • Related Guides
      • Options

GOMatrixType

is an option which provides information about the structure of a matrix.

Details and Options
Details and Options Details and Options
Examples  
Basic Examples  
See Also
Related Guides
GROUP THEORY SYMBOL
  • See Also
    • GTCompactStore
    • GOCompact
  • Related Guides
    • Options
    • See Also
      • GTCompactStore
      • GOCompact
    • Related Guides
      • Options
GroupTheory`
GroupTheory`

GOMatrixType

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)

First load the package:

Wolfram Language code: Needs["GroupTheory`"]

Create asymmetric matrix:

Wolfram Language code: 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}]
Wolfram Language code: mat//MatrixForm

The matrix is stored in compact form. All nonzero elements are stored.

Wolfram Language code: matc = GTCompactStore[mat]

Less information has to be stored, if the matrix is symmetric.

Wolfram Language code: matcs = GTCompactStore[mat, GOMatrixType -> "Symmetric"]

Create the full matrix from the compact form.

Wolfram Language code: matrs = GTCompactStore[matcs, GOCompact -> True];
Wolfram Language code: matrs//MatrixForm
Wolfram Language code: mat === matrs

Only the lower triangle is given. The information that the matrix is symmetric is necessary going back to the full matrix.

Wolfram Language code: matrs = GTCompactStore[matcs, GOCompact -> True, GOMatrixType -> "Symmetric"];
Wolfram Language code: mat === matrs

See Also

GTCompactStore  GOCompact

Related Guides

    ▪
  • Options
Not Found - Wolfram Cloud