Uses of Class
org.ejml.data.DMatrixD1
Package
Description
-
Uses of DMatrixD1 in org.ejml.data
Modifier and TypeClassDescriptionclass
Interface for a row-major matrix that uses a single array internally.class
A row-major block matrix declared on to one continuous array.class
DMatrixRMaj is a row matrix with real elements that are 64-bit floats.Modifier and TypeMethodDescriptionvoid
Sets the value of this matrix to be the same as the value of the provided matrix.ModifierConstructorDescriptionDMatrixIterator
(DMatrixD1 a, boolean rowMajor, int minRow, int minCol, int maxRow, int maxCol) Creates a new iterator for traversing through a submatrix inside this matrix.DSubmatrixD1
(DMatrixD1 original) DSubmatrixD1
(DMatrixD1 original, int row0, int row1, int col0, int col1) -
Uses of DMatrixD1 in org.ejml.dense.row
Modifier and TypeMethodDescriptionstatic <T extends DMatrixD1>
TCommonOps_DDRM.add
(double alpha, T a, double beta, T b, T output) Performs the following operation:
c = α * a + β * b
cij = α * aij + β * bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.add
(double alpha, T a, T b, T output) Performs the following operation:
c = α * a + b
cij = α * aij + bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.add
(T a, double val, T output) Performs scalar addition:
c = a + val
cij = aij + valstatic <T extends DMatrixD1>
TCommonOps_DDRM.add
(T a, double beta, T b, T output) Performs the following operation:
c = a + β * b
cij = aij + β * bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.add
(T a, T b, T output) Performs the following operation:
c = a + b
cij = aij + bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.changeSign
(T input, T output) Changes the sign of every element in the matrix.
outputij = -inputijstatic <T extends DMatrixD1>
TCommonOps_DDRM.divide
(double alpha, T input, T output) Performs an element by element scalar division with the scalar on top.
bij = α/aijstatic <T extends DMatrixD1>
TCommonOps_DDRM.divide
(T input, double alpha, T output) Performs an element by element scalar division with the scalar on botton.
bij = aij /αstatic <T extends DMatrixD1>
TCommonOps_DDRM.elementDiv
(T A, T B, T output) Performs the an element by element division operation:
cij = aij / bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.elementExp
(T A, T output) Element-wise exp operation
cij = Math.exp(aij)static <T extends DMatrixD1>
TCommonOps_DDRM.elementLog
(T A, T output) Element-wise log operation
cij = Math.log(aij)static <T extends DMatrixD1>
TCommonOps_DDRM.elementMult
(T A, T B, T output) Performs the an element by element multiplication operation:
cij = aij * bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.elementPower
(double a, T B, T output) Element-wise power operation
cij = a ^ bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.elementPower
(T A, double b, T output) Element-wise power operation
cij = aij ^ bstatic <T extends DMatrixD1>
TCommonOps_DDRM.elementPower
(T A, T B, T output) Element-wise power operation
cij = aij ^ bijstatic <T extends DMatrixD1>
TCommonOps_DDRM.subtract
(double val, T a, T output) Performs matrix scalar subtraction:
c = val - a
cij = val - aijstatic <T extends DMatrixD1>
TCommonOps_DDRM.subtract
(T a, double val, T output) Performs matrix scalar subtraction:
c = a - val
cij = aij - valstatic <T extends DMatrixD1>
TCommonOps_DDRM.subtract
(T a, T b, T output) Performs the following subtraction operation:
c = a - b
cij = aij - bijModifier and TypeMethodDescriptionstatic void
Performs absolute value of a matrix:
a = abs(a)
aij = abs(aij)static void
Performs absolute value of a matrix:
c = abs(a)
cij = abs(aij)static void
Performs an in-place scalar addition:
a = a + val
aij = aij + valstatic void
Performs the following operation:
a = a + β * b
aij = aij + β * bijstatic void
Performs the following operation:
a = a + b
aij = aij + bijstatic void
CommonOps_DDRM.changeSign
(DMatrixD1 a) Changes the sign of every element in the matrix.
aij = -aijstatic void
Converts the real matrix into a complex matrix.static double
Computes the F norm of the difference between the two Matrices:
Sqrt{∑i=1:m ∑j=1:n ( aij - bij)2}static double
SpecializedOps_DDRM.diffNormF_fast
(DMatrixD1 a, DMatrixD1 b) static double
SpecializedOps_DDRM.diffNormP1
(DMatrixD1 a, DMatrixD1 b) Computes the p=1 p-norm of the difference between the two Matrices:
∑i=1:m ∑j=1:n | aij - bij|
where |x| is the absolute value of x.static void
Performs an in-place element by element scalar division with the scalar on top.
aij = α/aijstatic void
Performs an in-place element by element scalar division with the scalar on bottom.
aij = aij/αstatic double
Computes the dot product or inner product between two vectors.static double
SpecializedOps_DDRM.elementDiagonalMaxAbs
(DMatrixD1 a) Returns the absolute value of the digonal element in the matrix that has the largest absolute value.
Max{ |aij| } for all i and jstatic void
CommonOps_DDRM.elementDiv
(DMatrixD1 A, DMatrixD1 B) Performs the an element by element division operation:
aij = aij / bijstatic double
CommonOps_DDRM.elementMax
(DMatrixD1 a) Returns the value of the element in the matrix that has the largest value.
Max{ aij } for all i and jstatic double
CommonOps_DDRM.elementMax
(DMatrixD1 a, ElementLocation loc) Returns the value of the element in the matrix that has the largest value.
Max{ aij } for all i and jstatic double
CommonOps_DDRM.elementMaxAbs
(DMatrixD1 a) Returns the absolute value of the element in the matrix that has the largest absolute value.
Max{ |aij| } for all i and jstatic double
CommonOps_DDRM.elementMaxAbs
(DMatrixD1 a, ElementLocation loc) Returns the absolute value of the element in the matrix that has the largest absolute value.
Max{ |aij| } for all i and jstatic double
CommonOps_DDRM.elementMin
(DMatrixD1 a) Returns the value of the element in the matrix that has the minimum value.
Min{ aij } for all i and jstatic double
CommonOps_DDRM.elementMin
(DMatrixD1 a, ElementLocation loc) Returns the value of the element in the matrix that has the minimum value.
Min{ aij } for all i and jstatic double
CommonOps_DDRM.elementMinAbs
(DMatrixD1 a) Returns the absolute value of the element in the matrix that has the smallest absolute value.
Min{ |aij| } for all i and jstatic double
CommonOps_DDRM.elementMinAbs
(DMatrixD1 a, ElementLocation loc) Returns the absolute value of the element in the matrix that has the smallest absolute value.
Min{ |aij| } for all i and jstatic void
CommonOps_DDRM.elementMult
(DMatrixD1 A, DMatrixD1 B) Performs the an element by element multiplication operation:
aij = aij * bijstatic double
CommonOps_DDRM.elementSum
(DMatrixD1 mat) Computes the sum of all the elements in the matrix:
sum(i=1:m , j=1:n ; aij)static double
CommonOps_DDRM.elementSumAbs
(DMatrixD1 mat) Computes the sum of the absolute value all the elements in the matrix:
sum(i=1:m , j=1:n ; |aij|)static double
SpecializedOps_DDRM.elementSumSq
(DMatrixD1 m) Sums up the square of each element in the matrix.static double
NormOps_DDRM.fastElementP
(DMatrixD1 A, double p) Same asNormOps_DDRM.elementP(org.ejml.data.DMatrix1Row, double)
but runs faster by not mitigating overflow/underflow related problems.static double
This implementation of the Frobenius norm is a straight forward implementation and can be susceptible for overflow/underflow issues.static void
Sets every element in the matrix to the specified value.
aij = valuestatic void
RandomMatrices_DDRM.fillGaussian
(DMatrixD1 mat, double mean, double stdev, Random rand) Sets each element in the matrix to a value drawn from an Gaussian distribution with the specified mean and standard deviationstatic void
RandomMatrices_DDRM.fillUniform
(DMatrixD1 mat, double min, double max, Random rand) Sets each element in the matrix to a value drawn from an uniform distribution from 'min' to 'max' inclusive.static boolean
Checks to see if any element in the matrix is NaN.static boolean
MatrixFeatures_DDRM.hasUncountable
(DMatrixD1 m) Checks to see if any element in the matrix is NaN of Infinite.static boolean
Checks to see if each element in the two matrices are equal: aij == bijstatic boolean
Checks to see if each element in the two matrices are within tolerance of each other: tol ≥ |aij - bij|.static boolean
MatrixFeatures_DDRM.isIdentical
(DMatrixD1 a, DMatrixD1 b, double tol) Checks to see if each corresponding element in the two matrices are within tolerance of each other or have the some symbolic meaning.static boolean
MatrixFeatures_DDRM.isNegative
(DMatrixD1 a, DMatrixD1 b, double tol) Checks to see if the two matrices are the negative of each other:
aij = -bijstatic boolean
Checks to see if it is a square matrix.static boolean
Checks to see all the elements in the matrix are zerosstatic double
Computes the Frobenius matrix norm:
normF = Sqrt{ ∑i=1:m ∑j=1:n { aij2} }static double
SpecializedOps_DDRM.qualityTriangular
(DMatrixD1 T) Computes the quality of a triangular matrix, where the quality of a matrix is defined inLinearSolver.quality()
.static void
DMatrixComponent.renderMatrix
(DMatrixD1 M, BufferedImage image, double maxValue) static void
Performs an in-place element by element scalar multiplication.
aij = α*aijstatic void
Performs an element by element scalar multiplication.
bij = α*aijvoid
static void
Creates a window visually showing the matrix's state.static void
CommonOps_DDRM.subtractEquals
(DMatrixD1 a, DMatrixD1 b) Performs the following subtraction operation:
a = a - b
aij = aij - bij -
Uses of DMatrixD1 in org.ejml.dense.row.misc
Modifier and TypeMethodDescriptionstatic <T extends DMatrixD1>
TImplCommonOps_DDRM.elementDiv
(T A, T B, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementExp
(T A, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementLog
(T A, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementMult
(T A, T B, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementPower
(double a, T B, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementPower
(T A, double b, T output) static <T extends DMatrixD1>
TImplCommonOps_DDRM.elementPower
(T A, T B, T output) Modifier and TypeMethodDescriptionstatic void
ImplCommonOps_DDRM.elementDiv
(DMatrixD1 A, DMatrixD1 B) static double
ImplCommonOps_DDRM.elementMax
(DMatrixD1 a, @Nullable ElementLocation loc) static double
ImplCommonOps_DDRM.elementMaxAbs
(DMatrixD1 a, @Nullable ElementLocation loc) static double
ImplCommonOps_DDRM.elementMin
(DMatrixD1 a, @Nullable ElementLocation loc) static double
ImplCommonOps_DDRM.elementMinAbs
(DMatrixD1 a, @Nullable ElementLocation loc) static void
ImplCommonOps_DDRM.elementMult
(DMatrixD1 A, DMatrixD1 B) static double
ImplCommonOps_DDRM.elementSum
(DMatrixD1 mat) static double
ImplCommonOps_DDRM.elementSumAbs
(DMatrixD1 mat) -
Uses of DMatrixD1 in org.ejml.dense.row.mult
Modifier and TypeMethodDescriptionstatic void
VectorVectorMult_DDRM.addOuterProd
(double gamma, DMatrixD1 x, DMatrixD1 y, DMatrix1Row A) Adds to A ∈ ℜ m × n the results of an outer product multiplication of the two vectors.static void
VectorVectorMult_DDRM.householder
(double gamma, DMatrixD1 u, DMatrixD1 x, DMatrixD1 y) Multiplies a householder reflection against a vector:
y = (I + γ u uT)xstatic double
Computes the inner product of the two vectors.static double
VectorVectorMult_DDRM.innerProdA
(DMatrixD1 x, DMatrixD1 A, DMatrixD1 y) return = xT*A*ystatic double
VectorVectorMult_DDRM.innerProdTranA
(DMatrixD1 x, DMatrixD1 A, DMatrixD1 y) xTATystatic void
MatrixVectorMult_DDRM.mult
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) Performs a matrix vector multiply.
c = A * b
and
c = A * bT
ci = Sum{ j=1:n, aij * bj}
where A is a matrix, b is a column or transposed row vector, and c is a column vector.static void
MatrixVectorMult_DDRM.multAdd
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) Performs a matrix vector multiply.
C = C + A * B
or
C = C + A * BT
ci = Sum{ j=1:n, ci + aij * bj}
where A is a matrix, B is a column or transposed row vector, and C is a column vector.static void
MatrixVectorMult_DDRM.multAddTransA_reorder
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) An alternative implementation ofMatrixVectorMult_DDRM.multAddTransA_small(org.ejml.data.DMatrix1Row, org.ejml.data.DMatrixD1, org.ejml.data.DMatrixD1)
that performs well on large matrices.static void
MatrixVectorMult_DDRM.multAddTransA_small
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) Performs a matrix vector multiply.
C = C + AT * B
or
C = CT + AT * BT
ci = Sum{ j=1:n, ci + aji * bj}
where A is a matrix, B is a column or transposed row vector, and C is a column vector.static void
MatrixVectorMult_DDRM.multTransA_reorder
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) An alternative implementation ofMatrixVectorMult_DDRM.multTransA_small(org.ejml.data.DMatrix1Row, org.ejml.data.DMatrixD1, org.ejml.data.DMatrixD1)
that performs well on large matrices.static void
MatrixVectorMult_DDRM.multTransA_small
(DMatrix1Row A, DMatrixD1 B, DMatrixD1 C) Performs a matrix vector multiply.
C = AT * B
where B is a column vector.
or
C = AT * BT
where B is a row vector.static void
VectorVectorMult_DDRM.outerProd
(DMatrixD1 x, DMatrixD1 y, DMatrix1Row A) Sets A ∈ ℜ m × n equal to an outer product multiplication of the two vectors. -
Uses of DMatrixD1 in org.ejml.masks