Sparse Matrices
- Introduction
- Creation of Sparse Matrices
- Construction of Initialized Sparse Matrices
SparseMatrix(R, m, n, Q): Rng, RngIntElt, RngIntElt, [ <RngIntElt, RngIntElt, RngElt> ] → MtrxSprs
SparseMatrix(m, n, Q): RngIntElt, RngIntElt, [ <RngIntElt, RngIntElt, RngElt> ] → MtrxSprs
SparseMatrix(R, m, n): Rng, RngIntElt, RngIntElt → MtrxSprs
SparseMatrix(m, n): RngIntElt, RngIntElt → MtrxSprs
- Construction of Trivial Sparse Matrices
- Construction of Structured Matrices
IdentitySparseMatrix(R, n): Rng, RngElt → MtrxSprs
ScalarSparseMatrix(n, s): RngIntElt, RngElt → MtrxSprs
ScalarSparseMatrix(R, n, s): Rng, RngIntElt, RngElt → MtrxSprs
DiagonalSparseMatrix(R, n, Q): Rng, RngIntElt, [ RngElt ] → MtrxSprs
DiagonalSparseMatrix(R, Q): Rng, [ RngElt ] → MtrxSprs
DiagonalSparseMatrix(Q): [ RngElt ] → MtrxSprs
SparseMonomialMatrix(g): GrpPermElt → MtrxSprs
- Parents of Sparse Matrices
- Accessing Sparse Matrices
- Accessing or Modifying Entries
A[i]: MtrxSprs, RngIntElt → ModTupRngElt
A[i, j]: MtrxSprs, RngIntElt, RngIntElt → RngElt
A[i, j] := x: MtrxSprs, RngIntElt, RngIntElt, RngElt
SetEntry(~A, i, j, x): MtrxSprs, RngIntElt, RngIntElt, RngElt
Example: Indexing
- Extracting and Inserting Blocks
Submatrix(A, i, j, p, q): MtrxSprs, RngIntElt, RngIntElt, RngIntElt, RngIntElt → MtrxSprs
ExtractBlock(A, i, j, p, q): MtrxSprs, RngIntElt, RngIntElt, RngIntElt, RngIntElt → MtrxSprs
SubmatrixRange(A, i, j, r, s): MtrxSprs, RngIntElt, RngIntElt, RngIntElt, RngIntElt → MtrxSprs
ExtractBlockRange(A, i, j, r, s): MtrxSprs, RngIntElt, RngIntElt, RngIntElt, RngIntElt → MtrxSprs
Submatrix(A, I, J): MtrxSprs, [RngIntElt], [RngIntElt] → MtrxSprs
InsertBlock(A, B, i, j): MtrxSprs, MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
InsertBlock(~A, B, i, j): MtrxSprs, MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
RowSubmatrix(A, i, k): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
RowSubmatrix(A, i): MtrxSprs, RngIntElt → MtrxSprs
RowSubmatrixRange(A, i, j): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
ColumnSubmatrix(A, i, k): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
ColumnSubmatrix(A, i): MtrxSprs, RngIntElt → MtrxSprs
ColumnSubmatrixRange(A, i, j): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
- Row and Column Operations
SwapRows(A, i, j): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
SwapRows(~A, i, j): MtrxSprs, RngIntElt, RngIntElt
SwapColumns(A, i, j): MtrxSprs, RngIntElt, RngIntElt → MtrxSprs
SwapColumns(~A, i, j): MtrxSprs, RngIntElt, RngIntElt
ReverseRows(A): MtrxSprs → MtrxSprs
ReverseRows(~A): MtrxSprs
ReverseColumns(A): MtrxSprs → MtrxSprs
ReverseColumns(~A): MtrxSprs
AddRow(A, c, i, j): MtrxSprs, RngElt, RngIntElt, RngIntElt → MtrxSprs
AddRow(~A, c, i, j): MtrxSprs, RngElt, RngIntElt, RngIntElt
AddColumn(A, c, i, j): MtrxSprs, RngElt, RngIntElt, RngIntElt → MtrxSprs
AddColumn(~A, c, i, j): MtrxSprs, RngElt, RngIntElt, RngIntElt
MultiplyRow(A, c, i): MtrxSprs, RngElt, RngIntElt → MtrxSprs
MultiplyRow(~A, c, i): MtrxSprs, RngElt, RngIntElt
MultiplyColumn(A, c, i): MtrxSprs, RngElt, RngIntElt → MtrxSprs
MultiplyColumn(~A, c, i): MtrxSprs, RngElt, RngIntElt
RemoveRow(A, i): MtrxSprs, RngIntElt → MtrxSprs
RemoveRow(~A, i): MtrxSprs, RngIntElt
RemoveColumn(A, j): MtrxSprs, RngIntElt → MtrxSprs
RemoveColumn(~A, j): MtrxSprs, RngIntElt
RemoveRowColumn(A, i, j): MtrxSprs, RngIntElt → MtrxSprs
RemoveRowColumn(~A, i, j): MtrxSprs, RngIntElt
RemoveZeroRows(A): MtrxSprs → MtrxSprs
RemoveZeroRows(~A): MtrxSprs
- Building Block Matrices
- Conversion to and from Dense Matrices
- Changing Ring
- Predicates
- Elementary Arithmetic
- Multiplying Vectors or Matrices by Sparse Matrices
- Non-trivial Properties
- Determinant and Other Properties
- Minimal and Characteristic Polynomials and Eigenvalues
MinimalPolynomial(A: parameters): MtrxSprs → RngUPolElt
CharacteristicPolynomial(A: parameters): MtrxSprs → RngUPolElt
MinimalAndCharacteristicPolynomials(A: parameters): MtrxSprs → RngUPolElt, RngUPolElt
MCPolynomials(A): MtrxSprs → RngUPolElt, RngUPolElt
FactoredMinimalPolynomial(A: parameters): MtrxSprs → [ <RngUPolElt, RngIntElt>]
FactoredCharacteristicPolynomial(A: parameters): MtrxSprs → [ <RngUPolElt, RngIntElt>]
FactoredMinimalAndCharacteristicPolynomials(A: parameters): MtrxSprs → [<RngUPolElt, RngIntElt>], [<RngUPolElt, RngIntElt>]
FactoredMCPolynomials(A: parameters): MtrxSprs → [<RngUPolElt, RngIntElt>], [<RngUPolElt, RngIntElt>]
Eigenvalues(A): MtrxSprs → { <FldElt, RngIntElt> }
Eigenspace(A, e): AlgMatElt, FldElt → ModTup
- Elementary Divisors (Smith Form)
- Verbosity
- Linear Systems (Structured Gaussian Elimination)