public abstract class MathematicaIO extends Object
Constructor and Description |
---|
MathematicaIO() |
Modifier and Type | Method and Description |
---|---|
static String |
listArray(String name,
double[] A)
Generates a string holding the named definition
of a 1D double array for Mathematica in the form
name = {A[0], A[1], ...,A[m-1]};
|
static String |
listArray(String name,
double[][] A)
Generates a string holding the named definition
of a 2D double array for Mathematica in the form
name = {{A[0][0],...,A[0][m-1]},
{A[1][0],...,A[1][m-1]}, ...,
{A[n-1][0], A[n-1][1], ...,A[n-1][m-1]}};
|
static String |
listArray(String name,
float[] A)
Generates a string holding the named definition
of a 1D float array for Mathematica in the form
name = {A[0], A[1], ...,A[m-1]}; |
static String |
listArray(String name,
float[][] A)
Generates a string holding the named definition
of a 2D float array for Mathematica in the form
name = {{A[0][0],...,A[0][m-1]},
{A[1][0],...,A[1][m-1]}, ...,
{A[n-1][0], A[n-1][1], ...,A[n-1][m-1]}};
|
static String |
listArray(String name,
int[] A)
Generates a string holding the named definition
of a 1D int array for Mathematica in the form
name = {A[0], A[1], ...,A[m-1]}; |
public MathematicaIO()
public static String listArray(String name, double[] A)
name
- the identifier to be used in Mathematica.A
- the array to be encoded (of length m).public static String listArray(String name, float[] A)
name = {A[0], A[1], ...,A[m-1]};
name
- the name (Mathematica symbol) for the resulting arrayA
- the array to be encoded (of length m).public static String listArray(String name, int[] A)
name = {A[0], A[1], ...,A[m-1]};
name
- the name (Mathematica symbol) for the resulting arrayA
- the array to be encoded (of length m).public static String listArray(String name, double[][] A)
name
- the identifier to be used in Mathematica.A
- the array to be encoded (of length m).public static String listArray(String name, float[][] A)
name
- the identifier to be used in Mathematica.A
- the array to be encoded (of length m).Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)