F - the number Fieldpublic class GenericFieldMatrix<F extends Field<F>> extends Object implements GenericMatrix<GenericFieldMatrix<F>,F>
Field.| Constructor and Description |
|---|
GenericFieldMatrix(F[][] data)
Construct a matrix over a field.
|
GenericFieldMatrix(int nRows,
int nCols,
F init)
Construct a matrix over a field.
|
| Modifier and Type | Method and Description |
|---|---|
GenericFieldMatrix<F> |
add(GenericFieldMatrix<F> that)
+ : G × G → G
|
boolean |
equals(Object obj) |
F |
get(int row,
int col)
Get the matrix entry at [i,j].
|
int |
hashCode() |
GenericFieldMatrix<F> |
minus(GenericFieldMatrix<F> that)
- : G × G → G
The operation "-" is not in the definition of of an additive group but can be deduced.
|
GenericFieldMatrix<F> |
multiply(GenericFieldMatrix<F> that)
× : G × G → G
|
int |
nCols()
Gets the number of columns.
|
int |
nRows()
Gets the number of rows.
|
GenericFieldMatrix<F> |
ONE()
The multiplicative element 1 in the group such that for any elements a in the group,
the equation 1 × a = a × 1 = a holds.
|
GenericFieldMatrix<F> |
opposite()
For each a in G, there exists an element b in G such that
a + b = b + a = 0.
|
GenericFieldMatrix<F> |
scaled(F scalar)
× : F × V → V
The result of applying this function to a scalar, c, in F and v in V is denoted cv.
|
void |
set(int row,
int col,
F value)
Set the matrix entry at [i,j] to a value.
|
String |
toString() |
GenericFieldMatrix<F> |
ZERO()
The additive element 0 in the group, such that for all elements a in the group,
the equation 0 + a = a + 0 = a holds.
|
public GenericFieldMatrix(int nRows,
int nCols,
F init)
nRows - the number of rowsnCols - the number of columnsinit - an initial value for the entries, e.g., 0public GenericFieldMatrix(F[][] data)
data - the matrix entriespublic int nRows()
Tablepublic int nCols()
Tablepublic void set(int row,
int col,
F value)
throws MatrixAccessException
GenericMatrixAccessset in interface GenericMatrixAccess<F extends Field<F>>row - the row indexcol - the column indexvalue - the value to set A[i,j] toMatrixAccessException - if i or j is out of rangepublic F get(int row, int col) throws MatrixAccessException
GenericMatrixAccessget in interface GenericMatrixAccess<F extends Field<F>>row - the row indexcol - the column indexMatrixAccessException - if i or j is out of rangepublic GenericFieldMatrix<F> add(GenericFieldMatrix<F> that)
AbelianGroupadd in interface AbelianGroup<GenericFieldMatrix<F extends Field<F>>>that - the object to be addedpublic GenericFieldMatrix<F> minus(GenericFieldMatrix<F> that)
AbelianGroupthis.add(that.opposite()).minus in interface AbelianGroup<GenericFieldMatrix<F extends Field<F>>>that - the object to be subtracted (subtrahend)public GenericFieldMatrix<F> multiply(GenericFieldMatrix<F> that)
Monoidpublic GenericFieldMatrix<F> scaled(F scalar)
VectorSpacescaled in interface VectorSpace<GenericFieldMatrix<F extends Field<F>>,F extends Field<F>>scalar - a multiplierpublic GenericFieldMatrix<F> opposite()
AbelianGroupthis.add(this.opposite()) == this.ZEROopposite in interface AbelianGroup<GenericFieldMatrix<F extends Field<F>>>public GenericFieldMatrix<F> ZERO()
AbelianGroupZERO in interface AbelianGroup<GenericFieldMatrix<F extends Field<F>>>public GenericFieldMatrix<F> ONE()
MonoidCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.