Package org.ejml.ops
Class ConvertMatrixType
java.lang.Object
org.ejml.ops.ConvertMatrixType
Contains a function to convert from one matrix type into another
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix
convert
(Matrix matrix, MatrixType desired) Converts a matrix of one data type into another data type.
-
Constructor Details
-
ConvertMatrixType
public ConvertMatrixType()
-
-
Method Details
-
convert
Converts a matrix of one data type into another data type. If no conversion is known then an exception is thrown. The result is always a new matrix instance, even if the matrix already has the desired type.- Returns:
- The converted matrix
-