Class MathCRMatrixD
java.lang.Object
org.ddogleg.chainrule.MathCRMatrixD
- All Implemented Interfaces:
MathCRMatrix<double[]>
Various math operations that can be formed on
CRMatrix-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds src into dst.CRArray<double[]> createArray(int length) Allocates a new array with the specified lengthCRMatrix<double[]> createMatrix(int rows, int cols) Creates a new matrix with the specified shapevoidFills the diagonal elements with the specified valuevoidFills every element with the specified valuebooleanisUncountable(CRMatrix<double[]> m) Returns true if the matrix contains at least one uncountable numbervoidPerforms a matrix multiplication between a and b.CRArray<double[]> Creates a random arrayCRMatrix<double[]> Creates a new random matrixvoidFills the matrix with uniform random values.voidFills all elements in the array with zeroMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MathCRMatrix
zero
-
Constructor Details
-
MathCRMatrixD
public MathCRMatrixD()
-
-
Method Details
-
mult
Performs a matrix multiplication between a and b. Results are stored in 'out'. The shape of 'out' is dynamically computed and adjusted.- Specified by:
multin interfaceMathCRMatrix<double[]>
-
addTo
Description copied from interface:MathCRMatrixAdds src into dst. Needed when a value feeds more than one consumer and the derivatives arriving from each have to be summed- Specified by:
addToin interfaceMathCRMatrix<double[]>
-
diag
Description copied from interface:MathCRMatrixFills the diagonal elements with the specified value- Specified by:
diagin interfaceMathCRMatrix<double[]>
-
fill
Description copied from interface:MathCRMatrixFills every element with the specified value- Specified by:
fillin interfaceMathCRMatrix<double[]>
-
zero
Description copied from interface:MathCRMatrixFills all elements in the array with zero- Specified by:
zeroin interfaceMathCRMatrix<double[]>
-
random
Fills the matrix with uniform random values.- Specified by:
randomin interfaceMathCRMatrix<double[]>- Parameters:
rand- The random number generatemin- Minimum value from RNGmax- Maximum value from RNGoutput- Matrix to fill in with random values
-
random
Creates a new random matrix- Specified by:
randomin interfaceMathCRMatrix<double[]>
-
random
Description copied from interface:MathCRMatrixCreates a random array- Specified by:
randomin interfaceMathCRMatrix<double[]>
-
isUncountable
Description copied from interface:MathCRMatrixReturns true if the matrix contains at least one uncountable number- Specified by:
isUncountablein interfaceMathCRMatrix<double[]>
-
createArray
Description copied from interface:MathCRMatrixAllocates a new array with the specified length- Specified by:
createArrayin interfaceMathCRMatrix<double[]>
-
createMatrix
Description copied from interface:MathCRMatrixCreates a new matrix with the specified shape- Specified by:
createMatrixin interfaceMathCRMatrix<double[]>
-