IncidenceAlgebra(R, S)ΒΆ
logic.spad line 287 [edit on github]
R: Ring
S: SetCategory
A domain for incidence matrices of finite posets.
- *: (%, %) -> %
x * yis the product of the matricesxandy. Error: if the dimensions are incompatible.
- *: (%, R) -> %
r*xis the left scalar multiple of the scalarrand the matrixx.
- *: (Permutation Integer, %) -> %
\pi * Apermutes the indices and the matrix according to the permutation\pi.
- *: (R, %) -> %
r*xis the left scalar multiple of the scalarrand the matrixx.
- +: (%, %) -> %
x + yis the sum of the matricesxandy. Error: if the dimensions are incompatible.
- ^: (%, NonNegativeInteger) -> %
x ^ ncomputes a non-negative integral power of the matrixx. Error: if the matrix is not square.
- apply: (%, S, S) -> R
A(s, t)returns $A_{i,j}$, where $i$, $j$ are the positions of $s$ and $t$ in the index list.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- incidenceAlgebra: (Matrix R, List S) -> %
incidenceAlgebra(A, ss)constructs an adjacency matrix with with indicesssand Matrix A
- incidenceAlgebra: (Matrix R, OneDimensionalArray S) -> %
incidenceAlgebra(A, ss)constructs an adjacency matrix with with indicesssand Matrix A
- indices: % -> OneDimensionalArray S
indices(A)returns the indices of the incidence matrix A
- latex: % -> String
from SetCategory
- matrix: % -> Matrix R
matrix(A)returns the underlying matrix of the incidence matrix A