Package org.ejml.ops
Class ConvertMatrixType
java.lang.Object
org.ejml.ops.ConvertMatrixType
public class ConvertMatrixType extends Object
Contains a function to convert from one matrix type into another
-
Constructor Summary
Constructors Constructor Description ConvertMatrixType() -
Method Summary
Modifier and Type Method Description static Matrixconvert(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
-