public class Matrix2x6 extends DenseMatrixBase
Matrix.Partition, Matrix.WriteFormat| Modifier and Type | Field and Description |
|---|---|
double |
m00 |
double |
m01 |
double |
m02 |
double |
m03 |
double |
m04 |
double |
m05 |
double |
m10 |
double |
m11 |
double |
m12 |
double |
m13 |
double |
m14 |
double |
m15 |
static Matrix2x6 |
ZERO
Global zero matrix.
|
INDEFINITE, POSITIVE_DEFINITE, SPD, SYMMETRIC| Constructor and Description |
|---|
Matrix2x6()
Creates a new Matrix2x6.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Matrix M)
Adds this matrix to M and places the result in this matrix.
|
void |
add(Matrix2x6 M)
Adds the contents of a Matrix2x6 to this matrix block.
|
void |
add(Matrix2x6 M1,
Matrix2x6 M2)
Computes M1 + M2 and places the result in this matrix.
|
Matrix2x6 |
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 |
getColumn(int j,
double[] values)
Copies a column of this matrix into an array of doubles.
|
void |
getColumn(int j,
double[] values,
int off)
Copies a column of this matrix into an array of doubles, starting at a
specified offset.
|
void |
getRow(int i,
double[] values)
Copies a row of this matrix into an array of doubles.
|
void |
getRow(int i,
double[] values,
int off)
Copies a row of this matrix into an array of doubles, starting at a
specified offset.
|
void |
getRow(int i,
Vector3d v1,
Vector3d v2)
Copies a row of this Matrix6x2 into two specified vectors.
|
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,
Matrix2x6 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,
Matrix2x6 M)
Computes s M and adds the result to this matrix.
|
void |
scaledAdd(double s,
Matrix2x6 M1,
Matrix2x6 M2)
Computes s M1 + M2 and places the result in this matrix.
|
void |
set(double[] values)
Sets the elements of this matrix from an array of doubles.
|
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(Matrix2x6 M)
Sets the contents of this Matrix2x6 to those of a specified block.
|
void |
setColumn(int j,
double[] values)
Sets a column of this matrix from an array of doubles.
|
void |
setRow(int i,
double[] values)
Set a row of this matrix from an array of doubles.
|
void |
setRow(int i,
Vector3d v1,
Vector3d v2)
Sets a row of this Matrix6x2 from two specified vectors.
|
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(Matrix2x6 M)
Subtracts the contents of a Matrix2x6 from this matrix block.
|
void |
sub(Matrix2x6 M1,
Matrix2x6 M2)
Computes M1 - M2 places the result in this matrix.
|
void |
transpose(Matrix6x2 M)
Sets this matrix to the transpose of M
|
add, checkConsistency, set, set, set, setCCSValues, setColumn, setCRSValues, setRow, setSubMatrixcontainsNaN, determinant, epsilonEquals, equals, frobeniusNorm, frobeniusNormSquared, get, get, getCCSIndices, getCCSIndices, getCCSIndices, getCCSValues, getCCSValues, getCCSValues, getColumn, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, getDefaultFormat, 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, getCRSIndices, getCRSIndices, getCRSIndices, getCRSValues, getCRSValues, getCRSValues, 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 double m01
public double m02
public double m03
public double m04
public double m05
public double m10
public double m11
public double m12
public double m13
public double m14
public double m15
public static final Matrix2x6 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 getColumn(int j,
double[] values)
getColumn in interface MatrixgetColumn in class MatrixBasej - column indexvalues - array into which the column is copiedpublic void getColumn(int j,
double[] values,
int off)
getColumn in interface MatrixgetColumn in class MatrixBasej - column indexvalues - array into which the column is copiedoff - offset in values where copying should beginpublic void getRow(int i,
double[] values)
getRow in interface MatrixgetRow in class MatrixBasei - row indexvalues - array into which the row is copiedpublic void getRow(int i,
double[] values,
int off)
getRow in interface MatrixgetRow in class MatrixBasei - row indexvalues - array into which the row is copiedoff - offset in values where copying should beginpublic void getRow(int i,
Vector3d v1,
Vector3d v2)
i - row indexv1 - vector to recieve the first three values.v2 - vector to recieve the second three values.public void set(int i,
int j,
double value)
set in interface DenseMatrixset in class DenseMatrixBasei - element row indexj - element column indexvalue - element valuepublic void set(double[] values)
(i,j) is stored at location i*colSize()+j.set in interface DenseMatrixset in class DenseMatrixBasevalues - array from which values are copiedpublic void setColumn(int j,
double[] values)
setColumn in interface DenseMatrixsetColumn in class DenseMatrixBasej - column indexvalues - array from which column values are copiedpublic void setRow(int i,
double[] values)
setRow in interface DenseMatrixsetRow in class DenseMatrixBasei - row indexvalues - array from which the row is copiedpublic void setZero()
public void set(Matrix M)
DenseMatrixBaseset in interface Matrixset in class DenseMatrixBaseM - matrix whose size and values are copiedpublic void set(Matrix2x6 M)
M - matrix block providing new valuespublic void setRow(int i,
Vector3d v1,
Vector3d v2)
i - index of the rowv1 - vector specifying first three values.v2 - vector specifying second three values.public void scale(double s)
s.s - scaling factorpublic void scale(double s,
Matrix2x6 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 add(Matrix2x6 M)
M - matrix block to addpublic void add(Matrix2x6 M1, Matrix2x6 M2)
M1 - first matrix to addM2 - second matrix to addpublic void scaledAdd(double s,
Matrix2x6 M)
s - scaling factorM - matrix to be scaled and addedpublic void scaledAdd(double s,
Matrix2x6 M1,
Matrix2x6 M2)
s - scaling factorM1 - matrix to be scaledM2 - matrix to be addedpublic void sub(Matrix M)
M - right-hand matrixImproperSizeException - if this matrix and M have different sizespublic void sub(Matrix2x6 M)
M - matrix block to subtractpublic void sub(Matrix2x6 M1, Matrix2x6 M2)
M1 - first matrixM2 - matrix to subtractpublic void mulAdd(Matrix M1, Matrix M2)
M1 - left matrix termM2 - right matrix termpublic void transpose(Matrix6x2 M)
M - matrix to take the transpose ofpublic Matrix2x6 clone()
clone in class java.lang.Object