homology.f2homology
K,L
- the index typespublic class F2Matrix<K extends java.lang.Comparable<K>,L extends java.lang.Comparable<L>> extends java.util.TreeMap<ComparablePair<K,L>,F2>
Constructor and Description |
---|
F2Matrix()
Creates a new empty F2Matrix.
|
F2Matrix(java.util.Map<ComparablePair<K,L>,F2> map)
Constructs an F2Matrix from a Map (a partial matrix).
|
F2Matrix(java.util.Set<K> rowSet,
java.util.Set<L> columnSet)
Constructs an empty F2Matrix with specified row set and column set.
|
F2Matrix(java.util.Set<K> rowSet,
java.util.Set<L> columnSet,
F2 value)
Constructs a constant F2Matrix.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<L> |
columnList()
Returns a list of column indices of this F2Matrix.
|
java.util.Set<L> |
columns()
Returns the column set of this F2Matrix.
|
boolean |
equalArray(F2Matrix<K,L> matrix)
Compares the specified F2Matrix with this F2Matrix for equality in
their arrays.
|
boolean |
equals(F2Matrix<K,L> matrix)
Compares the specified F2Matrix with this F2Matrix for
equality in their row sets, column sets and individual entries.
|
java.util.List<F2Vector<K>> |
imageBasis()
Returns a basis of F2Vectors for the image of this F2Matrix.
|
java.util.List<F2[]> |
imageBasisListOfArray()
Returns a basis of the image of this F2Matrix as a list of arrays.
|
java.util.List<F2Vector<L>> |
kernelBasis()
Returns a basis for the kernel of this F2Matrix
as a list of F2Vectors.
|
java.util.List<F2[]> |
kernelBasisListOfArray()
Returns a basis for the kernel of this F2Matrix
as a list of arrays over F2.
|
<M extends java.lang.Comparable<M>> |
product(F2Matrix<L,M> m)
Returns the product AB of this matrix A with another matrix B.
|
int |
rank()
Returns the rank of this F2Matrix.
|
java.util.List<F2[]> |
readOffNF()
Returns the normal form for reading off a basis for the kernel of this
F2Matrix.
|
F2Matrix<K,L> |
rowEchelon()
Returns a row echelon form of this F2Matrix.
|
F2[][] |
rowEchelonArray()
Returns an array which is a row echelon form of this F2Matrix.
|
java.util.List<K> |
rowList()
Returns a list of row indices of this F2Matrix.
|
java.util.Set<K> |
rows()
Returns the row set of this F2Matrix.
|
F2[][] |
toArray()
Returns the array associated with this F2Matrix.
|
F2[][] |
upperTriangArray()
Returns an upper triangular array by partial Gaussian elimination
of this F2Matrix.
|
F2Matrix<K,L> |
upperTriangular()
Returns an upper triangular matrix by partial
Gaussian elimination of this F2Matrix.
|
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
public F2Matrix()
public F2Matrix(java.util.Set<K> rowSet, java.util.Set<L> columnSet)
K
- row index typeL
- column index typerowSet
- columnSet
- public F2Matrix(java.util.Set<K> rowSet, java.util.Set<L> columnSet, F2 value)
K
- row index typeL
- column index typerowSet
- columnSet
- value
- public F2Matrix(java.util.Map<ComparablePair<K,L>,F2> map)
K
- row index typeL
- column index typemap
- public boolean equals(F2Matrix<K,L> matrix)
matrix
- public boolean equalArray(F2Matrix<K,L> matrix)
matrix
- public java.util.Set<K> rows()
K
- row index typepublic java.util.Set<L> columns()
L
- column index typepublic java.util.List<K> rowList()
K
- row index typepublic java.util.List<L> columnList()
L
- column index typepublic F2[][] toArray()
public F2[][] upperTriangArray()
- public F2Matrix<K,L> upperTriangular()
K
- row index typeL
- column index typepublic F2[][] rowEchelonArray()
public F2Matrix<K,L> rowEchelon()
K
- row index typeL
- column index typepublic java.util.List<F2[]> readOffNF()
public java.util.List<F2[]> kernelBasisListOfArray()
public java.util.List<F2Vector<L>> kernelBasis()
L
- column index typepublic java.util.List<F2[]> imageBasisListOfArray()
public java.util.List<F2Vector<K>> imageBasis()
K
- row index typepublic int rank()
public <M extends java.lang.Comparable<M>> F2Matrix<K,M> product(F2Matrix<L,M> m)
K
- row index typeL
- row index typeM
- column index typem
- InvalidOperationException
- if the column set of A does not coincide with the row set of B