IncidenceAlgebra(R, S)ΒΆ
logic.spad line 287 [edit on github]
R: Ring
S: SetCategory
A domain for incidence matrices of finite posets.
- *: (%, %) -> %
x * y
is the product of the matricesx
andy
. Error: if the dimensions are incompatible.
- *: (%, R) -> %
r*x
is the left scalar multiple of the scalarr
and the matrixx
.
- *: (Permutation Integer, %) -> %
\pi * A
permutes the indices and the matrix according to the permutation\pi
.
- *: (R, %) -> %
r*x
is the left scalar multiple of the scalarr
and the matrixx
.
- +: (%, %) -> %
x + y
is the sum of the matricesx
andy
. Error: if the dimensions are incompatible.
- ^: (%, NonNegativeInteger) -> %
x ^ n
computes 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 indicesss
and Matrix A
- incidenceAlgebra: (Matrix R, OneDimensionalArray S) -> %
incidenceAlgebra(A, ss)
constructs an adjacency matrix with with indicesss
and 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