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 Details

    • ConvertMatrixType

      public ConvertMatrixType()
  • Method Details

    • convert

      public static Matrix convert(Matrix matrix, MatrixType desired)
      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