public class Convert
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static IExpr |
doubleToExprTranspose(double[][] dd)
Convert a matrix of double values to a transposed Symja matrix of
List[List[...], ...] |
static org.apache.commons.math4.linear.FieldMatrix<IExpr> |
list2Matrix(IAST listMatrix)
Returns a FieldMatrix if possible.
|
static org.apache.commons.math4.linear.FieldMatrix<IExpr> |
list2Matrix(IAST listMatrix,
IAST listVector)
Return the augmented FiledMatrix
listMatrix | listVector |
static org.apache.commons.math4.linear.RealMatrix |
list2RealMatrix(IAST listMatrix)
Returns a RealMatrix if possible.
|
static org.apache.commons.math4.linear.RealVector |
list2RealVector(IAST listVector)
Returns a RealVector if possible.
|
static org.apache.commons.math4.linear.FieldVector<IExpr> |
list2Vector(IAST listVector) |
static IAST |
matrix2List(org.apache.commons.math4.linear.FieldMatrix<IExpr> matrix)
Converts a FieldMatrix to the list expression representation.
|
static IExpr |
polynomialFunction2Expr(double[] coefficients,
ISymbol sym)
Converts an array of coefficients into the (polynomial) expression
representation.
|
static IExpr |
polynomialFunction2Expr(org.apache.commons.math4.analysis.polynomials.PolynomialFunction pf,
ISymbol sym)
Converts a PolynomialFunction to the (polynomial) expression
representation.
|
static IAST |
realMatrix2List(org.apache.commons.math4.linear.RealMatrix matrix)
Converts a RealMatrix to the list expression representation.
|
static IAST |
realVector2List(org.apache.commons.math4.linear.RealVector vector)
Convert a RealVector to a IAST list.
|
static IAST |
vector2List(org.apache.commons.math4.linear.FieldVector<IExpr> vector)
Convert a FieldVector to a IAST list.
|
public static IExpr doubleToExprTranspose(double[][] dd)
List[List[...], ...].dd - F.NIL if no conversion was possiblepublic static org.apache.commons.math4.linear.RealMatrix list2RealMatrix(IAST listMatrix) throws java.lang.ClassCastException, java.lang.IndexOutOfBoundsException
listMatrix - null if the given list is no matrix.WrongArgumentType - if not all elements are convertable to a double
value.java.lang.IndexOutOfBoundsExceptionjava.lang.ClassCastExceptionpublic static IAST realMatrix2List(org.apache.commons.math4.linear.RealMatrix matrix)
matrix - F.NIL if no conversion was possiblepublic static org.apache.commons.math4.linear.RealVector list2RealVector(IAST listVector) throws java.lang.ClassCastException, java.lang.IndexOutOfBoundsException
listVector - null if the given list is no matrix.WrongArgumentType - if not all elements are convertable to a double
value.java.lang.IndexOutOfBoundsExceptionjava.lang.ClassCastExceptionpublic static IAST realVector2List(org.apache.commons.math4.linear.RealVector vector)
vector - F.NIL if no conversion was possiblepublic static IExpr polynomialFunction2Expr(org.apache.commons.math4.analysis.polynomials.PolynomialFunction pf, ISymbol sym)
pf - the polynomial functionsym - the name of the polynomial functions variablepublic static IExpr polynomialFunction2Expr(double[] coefficients, ISymbol sym)
coefficients - the coefficients of the polynomial functionsym - the name of the polynomial functions variablepublic static org.apache.commons.math4.linear.FieldMatrix<IExpr> list2Matrix(IAST listMatrix) throws java.lang.ClassCastException, java.lang.IndexOutOfBoundsException
listMatrix - java.lang.ClassCastExceptionjava.lang.IndexOutOfBoundsExceptionpublic static org.apache.commons.math4.linear.FieldMatrix<IExpr> list2Matrix(IAST listMatrix, IAST listVector) throws java.lang.ClassCastException, java.lang.IndexOutOfBoundsException
listMatrix | listVectorlistMatrix - listVector - java.lang.ClassCastExceptionjava.lang.IndexOutOfBoundsExceptionpublic static org.apache.commons.math4.linear.FieldVector<IExpr> list2Vector(IAST listVector) throws java.lang.ClassCastException, java.lang.IndexOutOfBoundsException
java.lang.ClassCastExceptionjava.lang.IndexOutOfBoundsExceptionpublic static IAST matrix2List(org.apache.commons.math4.linear.FieldMatrix<IExpr> matrix)
matrix - F.NIL if no conversion was possible