Documentation of 'org.matheclipse.core.convert.Convert' Java class
Convert
org.matheclipse.core.convert

Class Convert



  • public class Convert
    extends java.lang.Object
    Conversions between an IExpr object and misc other object class types
    • Method Detail

      • doubleToExprTranspose

        public static IExpr doubleToExprTranspose(double[][] dd)
      • list2Matrix

        public static FieldMatrix<ExprFieldElement> list2Matrix(IAST listMatrix)
                                                         throws java.lang.ClassCastException,
                                                                java.lang.IndexOutOfBoundsException
        Returns a FieldMatrix if possible.
        Parameters:
        listMatrix -
        Returns:
        Throws:
        java.lang.ClassCastException
        java.lang.IndexOutOfBoundsException
      • matrix2List

        public static IAST matrix2List(FieldMatrix<ExprFieldElement> matrix)
        Converts a FieldMatrix to the list expression representation.
        Parameters:
        matrix -
        Returns:
      • list2RealMatrix

        public static RealMatrix list2RealMatrix(IAST listMatrix)
                                          throws java.lang.ClassCastException,
                                                 java.lang.IndexOutOfBoundsException
        Returns a RealMatrix if possible.
        Parameters:
        listMatrix -
        Returns:
        a RealMatrix or null if the given list is no matrix.
        Throws:
        java.lang.ClassCastException - if not all elements are convertable to a double value.
        java.lang.IndexOutOfBoundsException
      • realMatrix2List

        public static IAST realMatrix2List(RealMatrix matrix)
        Converts a RealMatrix to the list expression representation.
        Parameters:
        matrix -
        Returns:
      • list2Vector

        public static FieldVector<ExprFieldElement> list2Vector(IAST listVector)
                                                         throws java.lang.ClassCastException,
                                                                java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.ClassCastException
        java.lang.IndexOutOfBoundsException
      • list2RealVector

        public static RealVector list2RealVector(IAST listVector)
                                          throws java.lang.ClassCastException,
                                                 java.lang.IndexOutOfBoundsException
        Throws:
        java.lang.ClassCastException
        java.lang.IndexOutOfBoundsException
      • realVector2List

        public static IAST realVector2List(RealVector vector)
        Convert a RealVector to a IAST list.
        Parameters:
        vector -
        Returns:
      • polynomialFunction2Expr

        public static IExpr polynomialFunction2Expr(PolynomialFunction pf,
                                                    ISymbol sym)
        Converts a PolynomialFunction to the (polynomial) expression representation.
        Parameters:
        pf - the polynomial function
        sym - the name of the polynomial functions variable
        Returns:
      • polynomialFunction2Expr

        public static IExpr polynomialFunction2Expr(double[] coefficients,
                                                    ISymbol sym)
        Converts an array of coefficients into the (polynomial) expression representation.
        Parameters:
        coefficients - the coefficients of the polynomial function
        sym - the name of the polynomial functions variable
        Returns:

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.