MatlabNumericArray.DoubleArrayType¶
-
public static final class
DoubleArrayType<T>¶ An array type of dimension 2 or greater which holds
doubles. Instances for dimensions 2 through 9 are available aspublic staticfields. This class is unconditionally thread-safe.Parameters: - <T> – an array of 2 or more dimensions which holds
doubles
- <T> – an array of 2 or more dimensions which holds
Fields¶
DIM_2¶
-
public static final DoubleArrayType<double[][]>
DIM_2¶ Representation of
double[][]class.
DIM_3¶
-
public static final DoubleArrayType<double[][][]>
DIM_3¶ Representation of
double[][][]class.
DIM_4¶
-
public static final DoubleArrayType<double[][][][]>
DIM_4¶ Representation of
double[][][][]class.
DIM_5¶
-
public static final DoubleArrayType<double[][][][][]>
DIM_5¶ Representation of
double[][][][][]class.
DIM_6¶
-
public static final DoubleArrayType<double[][][][][][]>
DIM_6¶ Representation of
double[][][][][][]class.
DIM_7¶
-
public static final DoubleArrayType<double[][][][][][][]>
DIM_7¶ Representation of
double[][][][][][][]class.
DIM_8¶
-
public static final DoubleArrayType<double[][][][][][][][]>
DIM_8¶ Representation of
double[][][][][][][][]class.
DIM_9¶
-
public static final DoubleArrayType<double[][][][][][][][][]>
DIM_9¶ Representation of
double[][][][][][][][][]class.
Methods¶
getArrayClass¶
getInstance¶
-
public static <T> DoubleArrayType<T>
getInstance(Class<T> arrayType)¶ Gets an instance of
DoubleArrayType<T>whereTis the type ofarrayType.Tmust be an array of 1 or more dimensions that holdsdoubles. This is intended for getting array types in excess of 9 dimensions, as dimensions 2 through 9 are represented by constantsDIM_2 ... DIM_9. Contrived example usage:DoubleArrayType<double[][][]> type3D = DoubleArrayType.getInstance(double[][][].class);Parameters: - <T> –
- arrayType –
Throws: - IllegalArgumentException – if the type is not an array holding
doubles or the type is of less than 2 dimensions
getInstance¶
-
static DoubleArrayType<?>
getInstance(int dimensions)¶
getInstanceUnsafe¶
-
static <T> DoubleArrayType<T>
getInstanceUnsafe(Class<T> arrayType)¶ Behaves the same as
getInstance(java.lang.Class)except thatdouble[]is valid. This is needed by some of the recursive algorithms inMatlabNumericArray.