Uses of Class
org.ejml.data.DMatrixD1
Packages that use DMatrixD1
Package
Description
-
Uses of DMatrixD1 in org.ejml.data
Subclasses of DMatrixD1 in org.ejml.dataModifier and TypeClassDescriptionclassInterface for a row-major matrix that uses a single array internally.classA row-major block matrix declared on to one continuous array.classDMatrixRMaj is a row matrix with real elements that are 64-bit floats.Methods in org.ejml.data with parameters of type DMatrixD1Modifier and TypeMethodDescriptionvoidSets the value of this matrix to be the same as the value of the provided matrix.Constructors in org.ejml.data with parameters of type DMatrixD1ModifierConstructorDescriptionDMatrixIterator(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
Methods in org.ejml.dense.row with type parameters of type DMatrixD1Modifier 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 - bijMethods in org.ejml.dense.row with parameters of type DMatrixD1Modifier and TypeMethodDescriptionstatic voidPerforms absolute value of a matrix:
a = abs(a)
aij = abs(aij)static voidPerforms absolute value of a matrix:
c = abs(a)
cij = abs(aij)static voidPerforms an in-place scalar addition:
a = a + val
aij = aij + valstatic voidPerforms the following operation:
a = a + β * b
aij = aij + β * bijstatic voidPerforms the following operation:
a = a + b
aij = aij + bijstatic voidCommonOps_DDRM.changeSign(DMatrixD1 a) Changes the sign of every element in the matrix.
aij = -aijstatic voidConverts the real matrix into a complex matrix.static doubleComputes the F norm of the difference between the two Matrices:
Sqrt{∑i=1:m ∑j=1:n ( aij - bij)2}static doubleSpecializedOps_DDRM.diffNormF_fast(DMatrixD1 a, DMatrixD1 b) static doubleSpecializedOps_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 voidPerforms an in-place element by element scalar division with the scalar on top.
aij = α/aijstatic voidPerforms an in-place element by element scalar division with the scalar on bottom.
aij = aij/αstatic doubleComputes the dot product or inner product between two vectors.static doubleSpecializedOps_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 voidCommonOps_DDRM.elementDiv(DMatrixD1 A, DMatrixD1 B) Performs the an element by element division operation:
aij = aij / bijstatic doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 doubleCommonOps_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 voidCommonOps_DDRM.elementMult(DMatrixD1 A, DMatrixD1 B) Performs the an element by element multiplication operation:
aij = aij * bijstatic doubleCommonOps_DDRM.elementSum(DMatrixD1 mat) Computes the sum of all the elements in the matrix:
sum(i=1:m , j=1:n ; aij)static doubleCommonOps_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 doubleSpecializedOps_DDRM.elementSumSq(DMatrixD1 m) Sums up the square of each element in the matrix.static doubleNormOps_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 doubleThis implementation of the Frobenius norm is a straight forward implementation and can be susceptible for overflow/underflow issues.static voidSets every element in the matrix to the specified value.
aij = valuestatic voidRandomMatrices_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 voidRandomMatrices_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 booleanChecks to see if any element in the matrix is NaN.static booleanMatrixFeatures_DDRM.hasUncountable(DMatrixD1 m) Checks to see if any element in the matrix is NaN of Infinite.static booleanChecks to see if each element in the two matrices are equal: aij == bijstatic booleanChecks to see if each element in the two matrices are within tolerance of each other: tol ≥ |aij - bij|.static booleanMatrixFeatures_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 booleanMatrixFeatures_DDRM.isNegative(DMatrixD1 a, DMatrixD1 b, double tol) Checks to see if the two matrices are the negative of each other:
aij = -bijstatic booleanChecks to see if it is a square matrix.static booleanChecks to see all the elements in the matrix are zerosstatic doubleComputes the Frobenius matrix norm:
normF = Sqrt{ ∑i=1:m ∑j=1:n { aij2} }static doubleSpecializedOps_DDRM.qualityTriangular(DMatrixD1 T) Computes the quality of a triangular matrix, where the quality of a matrix is defined inLinearSolver.quality().static voidDMatrixComponent.renderMatrix(DMatrixD1 M, BufferedImage image, double maxValue) static voidPerforms an in-place element by element scalar multiplication.
aij = α*aijstatic voidPerforms an element by element scalar multiplication.
bij = α*aijvoidstatic voidCreates a window visually showing the matrix's state.static voidCommonOps_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
Methods in org.ejml.dense.row.misc with type parameters of type DMatrixD1Modifier 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) Methods in org.ejml.dense.row.misc with parameters of type DMatrixD1Modifier and TypeMethodDescriptionstatic voidImplCommonOps_DDRM.elementDiv(DMatrixD1 A, DMatrixD1 B) static doubleImplCommonOps_DDRM.elementMax(DMatrixD1 a, @Nullable ElementLocation loc) static doubleImplCommonOps_DDRM.elementMaxAbs(DMatrixD1 a, @Nullable ElementLocation loc) static doubleImplCommonOps_DDRM.elementMin(DMatrixD1 a, @Nullable ElementLocation loc) static doubleImplCommonOps_DDRM.elementMinAbs(DMatrixD1 a, @Nullable ElementLocation loc) static voidImplCommonOps_DDRM.elementMult(DMatrixD1 A, DMatrixD1 B) static doubleImplCommonOps_DDRM.elementSum(DMatrixD1 mat) static doubleImplCommonOps_DDRM.elementSumAbs(DMatrixD1 mat) -
Uses of DMatrixD1 in org.ejml.dense.row.mult
Methods in org.ejml.dense.row.mult with parameters of type DMatrixD1Modifier and TypeMethodDescriptionstatic voidVectorVectorMult_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 voidVectorVectorMult_DDRM.householder(double gamma, DMatrixD1 u, DMatrixD1 x, DMatrixD1 y) Multiplies a householder reflection against a vector:
y = (I + γ u uT)xstatic doubleComputes the inner product of the two vectors.static doubleVectorVectorMult_DDRM.innerProdA(DMatrixD1 x, DMatrixD1 A, DMatrixD1 y) return = xT*A*ystatic doubleVectorVectorMult_DDRM.innerProdTranA(DMatrixD1 x, DMatrixD1 A, DMatrixD1 y) xTATystatic voidMatrixVectorMult_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 voidMatrixVectorMult_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 voidMatrixVectorMult_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 voidMatrixVectorMult_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 voidMatrixVectorMult_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 voidMatrixVectorMult_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 voidVectorVectorMult_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
Methods in org.ejml.masks with parameters of type DMatrixD1