public final class Matrix22 extends APrimitiveMatrix implements ISpecialisedTransform
Modifier and Type | Field and Description |
---|---|
double |
m00 |
double |
m01 |
double |
m10 |
double |
m11 |
Constructor and Description |
---|
Matrix22() |
Matrix22(AMatrix m) |
Matrix22(double m00,
double m01,
double m10,
double m11) |
Matrix22(Matrix22 source) |
Modifier and Type | Method and Description |
---|---|
void |
add(AMatrix a)
Adds another matrix to this matrix.
|
void |
add(Matrix22 a) |
Matrix22 |
clone()
Returns a clone of the array, as a new array which will be fully mutable
and may be of a different class to the original.
|
Vector2 |
cloneRow(int row)
Creates a mutable vector that is the clone of a single row of this matrix
|
int |
columnCount()
Returns the number of columns in the matrix
|
void |
copyRowTo(int row,
double[] dest,
int destOffset) |
static Matrix22 |
create(double a,
double b,
double c,
double d) |
static Matrix22 |
createIdentity()
Creates a new mutable 2D identity matrix
|
static Matrix22 |
createReflectionMatrix(AVector normal) |
static Matrix22 |
createReflectionMatrix(Vector2 normal) |
static Matrix22 |
createRotationMatrix(double angle) |
static Matrix22 |
createScaleMatrix(double d) |
double |
determinant()
Calculates the determinant of the matrix.
|
long |
elementCount()
Returns the total number of elements in this array.
|
double |
elementMax()
Returns the maximum element value in this array.
|
double |
elementMin()
Returns the maximum element value in this array.
|
double |
elementSum()
Returns the sum of all elements in the matrix
|
boolean |
equals(Matrix22 m) |
boolean |
equals(Object o) |
Matrix22 |
exactClone()
Returns an exact deep clone of an array (i.e.
|
double |
get(int row,
int column)
Returns a specified element in the matrix
|
void |
getElements(double[] data,
int offset)
Gets all elements of the array, copying them into a double array
|
Matrix22 |
getTranspose()
Returns a transposed version of this matrix.
|
AMatrix |
innerProduct(AMatrix a) |
AVector |
innerProduct(AVector a) |
Matrix22 |
innerProduct(Matrix22 a) |
Vector2 |
innerProduct(Vector2 a) |
Matrix22 |
inverse() |
boolean |
isSymmetric()
Returns true if a matrix is symmetric
|
void |
multiply(double factor)
Multiplies all elements of the array by a given double value
|
int |
rowCount()
Returns the number of rows in the matrix
|
void |
set(AMatrix m) |
void |
set(int row,
int column,
double value)
Sets a specified element in the matrix
|
void |
set(Matrix22 a) |
void |
sub(Matrix22 a) |
Vector |
toVector()
Converts the matrix to a single flattened vector
in row major order.
|
double |
trace() |
void |
transform(AVector source,
AVector dest) |
Vector2 |
transform(Vector2 source) |
void |
transform(Vector2 source,
AVector dest) |
void |
transform(Vector2 source,
Vector2 dest) |
void |
transformInPlace(Vector2 dest) |
isFullyMutable, isSquare
abs, add, add, add, add, addAt, addMultiple, addRowMultiple, applyOp, applyOp, asDoubleArray, asElementList, asVector, bandIndex, bandLength, bandLength, bandPosition, broadcast, broadcastCloneLike, broadcastLike, broadcastLike, calculateElement, calculateElement, clamp, cloneColumn, compose, composeWith, copyColumnTo, copyTo, dimensionality, divide, divide, elementDiv, elementIterator, elementMul, elementSquaredSum, ensureMutable, epsilonEquals, epsilonEquals, epsilonEquals, equals, equals, equals, equalsTranspose, exp, fill, get, get, get, getBand, getBandWrapped, getColumn, getLeadingDiagonal, getLongShape, getRow, getShape, getShape, getShapeClone, getSlices, getSlices, getSliceViews, getTransposeCopy, getTransposeView, hashCode, hasOrthonormalColumns, hasOrthonormalRows, immutable, innerProduct, innerProduct, innerProduct, innerProduct, inputDimensions, isBoolean, isDiagonal, isElementConstrained, isHermitian, isIdentity, isInvertible, isLowerTriangular, isMutable, isOrthogonal, isPositiveDefinite, isRectangularDiagonal, isSameShape, isSameShape, isUpperTriangular, isView, isZero, iterator, join, log, lowerBandwidth, lowerBandwidthLimit, mul, multiply, multiplyRow, mutable, negate, nonZeroCount, outerProduct, outputDimensions, pow, reciprocal, replaceColumn, replaceRow, reshape, reshape, rotateView, scaleAdd, set, set, set, set, set, setColumn, setElements, setElements, setRow, signum, slice, slice, sliceCount, sqrt, square, sub, sub, sub, sub, sub, subArray, subMatrix, swapColumns, swapRows, toAffineTransform, toArray, toDoubleArray, toDoubleBuffer, toMatrix, toMatrixTranspose, toMutableMatrix, toString, transform, transform, transform, transformInPlace, transformInPlace, transposeInnerProduct, transposeInnerProduct, transposeInPlace, unsafeGet, unsafeSet, upperBandwidth, upperBandwidthLimit, validate
density, scale, sparse
public double m00
public double m01
public double m10
public double m11
public Matrix22()
public Matrix22(Matrix22 source)
public Matrix22(double m00, double m01, double m10, double m11)
public Matrix22(AMatrix m)
public void set(Matrix22 a)
public static Matrix22 create(double a, double b, double c, double d)
public static Matrix22 createRotationMatrix(double angle)
public static Matrix22 createScaleMatrix(double d)
public static Matrix22 createIdentity()
public void multiply(double factor)
INDArray
public double determinant()
AMatrix
determinant
in class AMatrix
public long elementCount()
INDArray
elementCount
in interface INDArray
elementCount
in class AMatrix
public double elementSum()
AMatrix
elementSum
in interface INDArray
elementSum
in class AMatrix
public double elementMin()
INDArray
elementMin
in interface INDArray
elementMin
in class AbstractArray<AVector>
public double elementMax()
INDArray
elementMax
in interface INDArray
elementMax
in class AbstractArray<AVector>
public Matrix22 inverse()
public int rowCount()
AMatrix
public int columnCount()
AMatrix
columnCount
in interface IMatrix
columnCount
in class AMatrix
public void add(AMatrix a)
AMatrix
public void add(Matrix22 a)
public void sub(Matrix22 a)
public Vector2 cloneRow(int row)
AMatrix
public void copyRowTo(int row, double[] dest, int destOffset)
public double get(int row, int column)
AMatrix
public void set(int row, int column, double value)
AMatrix
public AMatrix innerProduct(AMatrix a)
innerProduct
in class AMatrix
public AVector innerProduct(AVector a)
innerProduct
in class AMatrix
public void transformInPlace(Vector2 dest)
public boolean isSymmetric()
AMatrix
isSymmetric
in class AMatrix
public Vector toVector()
AMatrix
public Matrix22 getTranspose()
AMatrix
getTranspose
in interface INDArray
getTranspose
in class AMatrix
public void getElements(double[] data, int offset)
INDArray
getElements
in interface INDArray
getElements
in class AMatrix
public boolean equals(Matrix22 m)
public Matrix22 clone()
INDArray
public Matrix22 exactClone()
INDArray
exactClone
in interface INDArray
exactClone
in class AMatrix
Copyright © 2014. All Rights Reserved.