logic.spad line 287 [edit on github]
A domain for incidence matrices of finite posets.
x * y
is the product of the matrices x
and y
. Error: if the dimensions are incompatible.
r*x
is the left scalar multiple of the scalar r
and the matrix x
.
r*x
is the left scalar multiple of the scalar r
and the matrix x
.
\pi * A
permutes the indices and the matrix according to the permutation \pi
.
x + y
is the sum of the matrices x
and y
. Error: if the dimensions are incompatible.
x ^ n
computes a non-negative integral power of the matrix x
. Error: if the matrix is not square.
A(s, t)
returns $A_i
, j
$, where $i
$, $j
$ are the positions of $s
$ and $t
$ in the index list.
A(i, j)
returns $A_i
, j
$
incidenceAlgebra(A, ss)
constructs an adjacency matrix with with indices ss
and Matrix A
incidenceAlgebra(A, ss)
constructs an adjacency matrix with with indices ss
and Matrix A
indices(A)
returns the indices of the incidence matrix A
matrix(A)
returns the underlying matrix of the incidence matrix A