public class Matrix1x1 extends DenseMatrixBase
Matrix.Partition, Matrix.WriteFormat| Modifier and Type | Field and Description |
|---|---|
double |
m00 |
static Matrix1x1 |
ZERO
Global zero matrix.
|
INDEFINITE, POSITIVE_DEFINITE, SPD, SYMMETRIC| Constructor and Description |
|---|
Matrix1x1()
Creates a new Matrix1x1.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Matrix M)
Adds this matrix to M and places the result in this matrix.
|
void |
add(Matrix1x1 M)
Adds the contents of a Matrix1x1 to this matrix block.
|
void |
add(Matrix1x1 M1,
Matrix1x1 M2)
Computes M1 + M2 and places the result in this matrix.
|
Matrix1x1 |
clone()
Creates a clone of this matrix.
|
int |
colSize()
Number of columns in the matrix associated with this transformation.
|
double |
get(int i,
int j)
Gets a single element of this matrix.
|
void |
mulAdd(Matrix M1,
Matrix M2)
Multiplies M1 by M2 and places the result in this matrix.
|
int |
rowSize()
Number of rows in the matrix associated with this transformation.
|
void |
scale(double s)
Scales the elements of this matrix by
s. |
void |
scale(double s,
Matrix1x1 M)
Computes s M and places the result in this matrix.
|
void |
scaledAdd(double s,
Matrix M)
Scales the matrix M and add the result to this matrix.
|
void |
scaledAdd(double s,
Matrix1x1 M)
Adds the scaled contents of a Matrix1x1 to this matrix block.
|
void |
scaledAdd(double s,
Matrix1x1 M1,
Matrix1x1 M2)
Computes s M1 + M2 and places the result in this matrix.
|
void |
set(int i,
int j,
double value)
Sets a single element of this matrix.
|
void |
set(Matrix M)
Sets the size and values of this matrix to those of another matrix.
|
void |
set(Matrix1x1 M)
Sets the contents of this Matrix1x1 to those of a specified block.
|
void |
setZero()
Sets the elements of this matrix to zero.
|
void |
sub(Matrix M)
Subtracts this matrix from M and places the result in this matrix.
|
void |
sub(Matrix1x1 M)
Subtracts the contents of a Matrix1x1 from this matrix block.
|
void |
sub(Matrix1x1 M1,
Matrix1x1 M2)
Computes M1 - M2 places the result in this matrix.
|
void |
transpose(Matrix1x1 M)
Sets this matrix to the transpose of M
|
add, checkConsistency, set, set, set, set, setCCSValues, setColumn, setColumn, setCRSValues, setRow, setRow, setSubMatrixcontainsNaN, determinant, epsilonEquals, equals, frobeniusNorm, frobeniusNormSquared, get, get, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getColumn, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getDefaultFormat, getRow, getRow, getRow, getSize, getSubMatrix, hasNaN, idString, infinityNorm, isFixedSize, isSymmetric, maxNorm, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, oneNorm, scan, setCRSValues, setDefaultFormat, setSize, toString, toString, toString, trace, write, write, write, write, write, write, writeToFileequals, getClass, hashCode, notify, notifyAll, wait, wait, waitdeterminant, epsilonEquals, equals, frobeniusNorm, frobeniusNormSquared, get, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getColumn, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getRow, getRow, getRow, getSize, getSubMatrix, infinityNorm, isFixedSize, isSymmetric, maxNorm, mul, mul, mul, mulAdd, mulAdd, mulAdd, mulTranspose, mulTranspose, mulTranspose, mulTransposeAdd, mulTransposeAdd, mulTransposeAdd, numNonZeroVals, numNonZeroVals, oneNorm, scan, setSize, toString, toString, trace, write, write, writepublic double m00
public static final Matrix1x1 ZERO
public int rowSize()
mul.rowSize in interface LinearTransformNdrowSize in interface MatrixrowSize in class MatrixBasepublic int colSize()
mul.colSize in interface LinearTransformNdcolSize in interface MatrixcolSize in class MatrixBasepublic double get(int i,
int j)
get in interface Matrixget in class MatrixBasei - element row indexj - element column indexpublic void set(int i,
int j,
double value)
set in interface DenseMatrixset in class DenseMatrixBasei - element row indexj - element column indexvalue - element valuepublic void setZero()
public void set(Matrix M)
DenseMatrixBaseset in interface Matrixset in class DenseMatrixBaseM - matrix whose size and values are copiedpublic void set(Matrix1x1 M)
M - matrix block providing new valuespublic void scale(double s)
s.s - scaling factorpublic void scale(double s,
Matrix1x1 M)
s - scaling factorM - matrix to scalepublic void add(Matrix M)
M - right-hand matrixImproperSizeException - if this matrix and M have different sizespublic void scaledAdd(double s,
Matrix M)
s - scaling factorM - matrix to be scaled and addedImproperSizeException - if this matrix and M have different sizespublic void scaledAdd(double s,
Matrix1x1 M1,
Matrix1x1 M2)
s - scaling factorM1 - matrix to be scaledM2 - matrix to be addedpublic void add(Matrix1x1 M)
M - matrix block to addpublic void add(Matrix1x1 M1, Matrix1x1 M2)
M1 - first matrix to addM2 - second matrix to addpublic void scaledAdd(double s,
Matrix1x1 M)
M - matrix block to addpublic void sub(Matrix M)
M - right-hand matrixImproperSizeException - if this matrix and M have different sizespublic void sub(Matrix1x1 M)
M - matrix block to subtractpublic void sub(Matrix1x1 M1, Matrix1x1 M2)
M1 - first matrixM2 - matrix to subtractpublic void mulAdd(Matrix M1, Matrix M2)
M1 - left matrix termM2 - right matrix termpublic void transpose(Matrix1x1 M)
M - matrix to take the transpose ofpublic Matrix1x1 clone()
clone in class java.lang.Object