public final class Matrix33 extends APrimitiveMatrix implements ISpecialisedTransform
| Modifier and Type | Field and Description |
|---|---|
double |
m00 |
double |
m01 |
double |
m02 |
double |
m10 |
double |
m11 |
double |
m12 |
double |
m20 |
double |
m21 |
double |
m22 |
| Constructor and Description |
|---|
Matrix33()
Create a new (zero-initialised) 3x3 Matrix
|
Matrix33(AMatrix m) |
Matrix33(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22) |
Matrix33(Matrix33 source) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyOp(Op op)
Applies a unary operator to all elements of the array (in-place)
|
int |
checkSquare()
Checks if a matrix is square.
|
Matrix33 |
clone()
Returns a clone of the array data, as a new array which will be fully mutable
and may be of a different class to the original.
|
int |
columnCount()
Gets the number of columns in this matrix (dimension 1)
|
void |
copyRowTo(int row,
double[] dest,
int destOffset)
Copies the elements in a slected row of this matrix to a double array
|
static Matrix33 |
createIdentityMatrix() |
static Matrix33 |
createScaleMatrix(double d) |
double |
determinant()
Calculates the determinant of the matrix.
|
double |
diagonalProduct()
Computes the product of entries on the main diagonal of a matrix
|
long |
elementCount()
Returns the total number of elements in this array.
|
boolean |
equals(Matrix33 m) |
boolean |
equals(Object o) |
Matrix33 |
exactClone()
Creates a deep clone of an array, using the same class implementation as the original array
|
double |
get(int row,
int column)
Returns the double value at the specified position in a 2D matrix
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array at the specified offset
|
Vector3 |
getRowClone(int row)
Returns a row of the matrix as a cloned vector
|
Matrix33 |
getTranspose()
Returns the transpose of this array.
|
AMatrix |
innerProduct(AMatrix a)
Computes the inner product of this matrix with another.
|
AVector |
innerProduct(AVector a)
Computes the inner product of this array with a vector
|
Matrix33 |
innerProduct(Matrix33 a) |
Vector3 |
innerProduct(Vector3 a) |
Matrix33 |
inverse()
Computes the inverse of a matrix.
|
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
boolean |
isZero()
Returns true if the matrix is the zero matrix (all components zero)
|
void |
multiply(double factor)
Multiplies all elements of the array in place by a given double value
|
int |
rowCount()
Gets the number of rows in this matrix (dimension 0)
|
void |
set(int row,
int column,
double value)
Sets a value at a given position in a mutable 2D array
|
Affine34 |
toAffineTransform() |
double[] |
toDoubleArray()
Copies the elements of this array to a new double[] array.
|
double |
trace()
Computes the trace of a matrix, i.e.
|
void |
transform(AVector source,
AVector dest)
Transforms a source vector into a destination vector, using matrix multiplication (inner product).
|
Vector3 |
transform(Vector3 source) |
void |
transform(Vector3 source,
AVector dest) |
void |
transform(Vector3 source,
Vector3 dest) |
void |
transformInPlace(AVector dest) |
void |
transformInPlace(Vector3 dest) |
void |
transformNormal(AVector source,
AVector dest) |
void |
transformNormal(Vector3 source,
Vector3 dest) |
copy, getColumn, getRow, isFullyMutable, isSquareabs, add, add, add, add, add2, addAt, addCopy, addCopy, addCopy, addCopy, addCopy, addInnerProduct, addInnerProduct, addInnerProduct, addMultiple, addMultiple, addMultiple, addOuterProduct, addOuterProduct, addRowMultiple, addToArray, applyOp, applyOp, applyOp, applyOp, applyOp, applyOpCopy, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, bandStartColumn, bandStartRow, broadcast, broadcastCloneLike, broadcastCopyLike, broadcastLike, broadcastLike, checkColumn, checkColumnCount, checkDimension, checkIndex, checkRow, checkRowCount, checkSameShape, checkSameShape, checkShape, clamp, composeWith, copyColumnTo, dense, denseClone, dimensionality, divide, divide, divide, divide, elementIterator, elementsEqual, elementSquaredSum, elementSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equalsArray, equalsByRows, equalsTranspose, exp, fill, get, get, get, getBand, getBandWrapped, getColumnClone, getColumns, getColumnView, getLeadingDiagonal, getLongShape, getRows, getRowView, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, hasUncountable, immutable, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, isBoolean, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isUpperTriangular, isView, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiply, multiply, multiplyCopy, multiplyRow, mutable, negate, nonZeroCount, outerProduct, outputDimensions, pow, rank, reciprocal, reduce, reduce, reduceSlices, reduceSlices, reorder, reorder, replaceColumn, replaceRow, reshape, reshape, rotateView, rowDotProduct, scaleAdd, scaleAdd, set, set, set, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sparse, sparseClone, sqrt, square, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toNestedDoubleArrays, toSliceArray, toString, toStringFull, toVector, transform, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeGet, unsafeSet, upperBandwidth, upperBandwidthLimit, validateabsCopy, add, addAt, addInnerProduct, addPower, addPower, broadcastLike, checkMutable, componentCount, density, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equals, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, sub, subCopy, withComponentsfinalize, getClass, notify, notifyAll, wait, wait, waitabsCopy, addAt, addPower, addPower, broadcastLike, checkMutable, componentCount, divideCopy, elementAbsPowSum, elementMax, elementMin, elementPowSum, elementProduct, equalsArray, get, get, get, get, get, getComponent, getComponents, getElements, getElements, getElements, isDense, isSparse, join, multiplyCopy, negateCopy, reciprocalCopy, scale, scaleCopy, setElements, setInnerProduct, setMultiple, setMultiple, signumCopy, sliceValue, squareCopy, sub, subCopy, withComponentsforEach, spliteratorpublic double m00
public double m01
public double m02
public double m10
public double m11
public double m12
public double m20
public double m21
public double m22
public Matrix33()
public Matrix33(Matrix33 source)
public Matrix33(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22)
public Matrix33(AMatrix m)
public double determinant()
AMatrixdeterminant in class AMatrixpublic long elementCount()
INDArrayelementCount in interface INDArrayelementCount in class AMatrixpublic void multiply(double factor)
INDArraypublic int rowCount()
IMatrixpublic int columnCount()
IMatrixcolumnCount in interface IMatrixpublic int checkSquare()
AMatrixcheckSquare in class APrimitiveMatrixpublic double get(int row,
int column)
INDArraypublic void set(int row,
int column,
double value)
INDArraypublic void applyOp(Op op)
INDArraypublic AMatrix innerProduct(AMatrix a)
IMatrixinnerProduct in interface IMatrixinnerProduct in class AMatrixpublic AVector innerProduct(AVector a)
INDArrayinnerProduct in interface INDArrayinnerProduct in interface IMatrixinnerProduct in class AMatrixa - A vectorpublic void transform(AVector source, AVector dest)
IMatrixpublic void transformInPlace(AVector dest)
transformInPlace in interface IMatrixtransformInPlace in class AMatrixpublic void transformInPlace(Vector3 dest)
public boolean isSymmetric()
AMatrixisSymmetric in interface IMatrixisSymmetric in class AMatrixpublic Affine34 toAffineTransform()
toAffineTransform in class AMatrixpublic Matrix33 getTranspose()
INDArraygetTranspose in interface INDArraygetTranspose in interface IMatrixgetTranspose in class AMatrixpublic Vector3 getRowClone(int row)
getRowClone in interface IMatrixgetRowClone in class AMatrixpublic void copyRowTo(int row,
double[] dest,
int destOffset)
AMatrixpublic Matrix33 inverse()
AMatrixpublic double trace()
IMatrixpublic double diagonalProduct()
AMatrixdiagonalProduct in interface IMatrixdiagonalProduct in class AMatrixpublic Matrix33 clone()
INDArraypublic double[] toDoubleArray()
INDArraytoDoubleArray in interface INDArraytoDoubleArray in class AMatrixpublic Matrix33 exactClone()
INDArrayexactClone in interface INDArrayexactClone in class AMatrixpublic void getElements(double[] data,
int offset)
INDArraygetElements in interface INDArraygetElements in class AMatrixpublic boolean equals(Matrix33 m)
public static Matrix33 createIdentityMatrix()
public static Matrix33 createScaleMatrix(double d)
Copyright © 2016. All rights reserved.