Additional Access Layer types¶
- public class Complex¶
Representation of a Complex number, i.e. a number which has both a real and imaginary part.
Based on The Apache Commons Mathematics Library http://commons.apache.org/math/
- public Complex(double real)¶
Create a complex number given only the real part.
- Parameters:
real (
double) – Real part.
- public Complex(double real, double imaginary)¶
Create a complex number given the real and imaginary parts.
- Parameters:
real (
double) – Real part.imaginary (
double) – Imaginary part.
- public Complex(String strVal)¶
Create a complex number from a String. Its syntax must be (without spaces):
<decimal number>+<decimal number>i
or (<decimal number>,<decimal number>i)
- Parameters:
strVal (
String) – string value.
- public double getReal()¶
Access the real part.
- public double getImaginary()¶
Access the imaginary part.
Vector types¶
All vector types provide the following methods:
Info
Not all array methods are documented.
- public type getElementAt(int i, int j, int k, int h, int l, int m)¶
Get the value at the provided index.
- Parameters:
i (
int) – Index of first dimension.j (
int) – Index of second dimension (only for 2D+ vectors).k (
int) – Index of third dimension (only for 3D+ vectors).h (
int) – Index of fourth dimension (only for 4D+ vectors).l (
int) – Index of fifth dimension (only for 5D+ vectors).m (
int) – Index of sixth dimension (only for 6D vectors).
- public void setElementAt(int i, int j, int k, int h, int l, int m, type element)¶
Set the value at the provided index.
- Parameters:
i (
int) – Index of first dimension.j (
int) – Index of second dimension (only for 2D+ vectors).k (
int) – Index of third dimension (only for 3D+ vectors).h (
int) – Index of fourth dimension (only for 4D+ vectors).l (
int) – Index of fifth dimension (only for 5D+ vectors).m (
int) – Index of sixth dimension (only for 6D vectors).element (
type) – Value to set at the provided index.
- public type[][][][][][] get()¶
Returns internal array as row-major ordered array - copy of an array is returned.
If you want to update values of original column-major ordered array you have to use one of the methods:
setorsetElementAt.Note
The dimension of the returned array depends on the dimension of the vector. The example signature here is for a 6-dimensional vector.
- public void set(type[][][][][][] array)¶
Sets internal array in column-major ordered way.
- Parameters:
array (
type[][][][][][]) – row-major ordered array
Note
The dimension of the array you need to provide depends on the dimension of the vector. The example signature here is for a 6-dimensional vector.
Overview of vector types:¶
- public class Vect1DString¶
- public class Vect1DInt¶
- public class Vect1DDouble¶
- public class Vect1DComplex¶
- public class Vect2DInt¶
- public class Vect2DDouble¶
- public class Vect2DComplex¶
- public class Vect3DInt¶
- public class Vect3DDouble¶
- public class Vect3DComplex¶
- public class Vect4DDouble¶
- public class Vect4DComplex¶
- public class Vect5DDouble¶
- public class Vect5DComplex¶
- public class Vect6DDouble¶
- public class Vect6DComplex¶