Class Errors
- java.lang.Object
-
- io.github.hakkelt.ndarrays.internal.Errors
-
public class Errors extends Object
Enum of error messages. Outside of the package it should only be used within unit tests to check if proper exceptions are thrown in case of faulty behaviour.
-
-
Field Summary
Fields Modifier and Type Field Description static StringALL_DIMS_DROPPEDCannot drop all dimensions!static StringARRAYS_DIFFER_IN_SHAPEShape of input arrays are not the same!static StringCANNOT_DROP_DIM_NEGATIVEAxis %d cannot be droppedstatic StringCANNOT_DROP_DIM_OVERFLOWAxis %d cannot be dropped because the array has only %d dimensionsstatic StringCANNOT_FIND_DTYPE2Cannot find secondary data type (precision)!static StringCANNOT_SELECT_DIM_NEGATIVEAxis %d cannot be selectedstatic StringCANNOT_SELECT_DIM_OVERFLOWAxis %d cannot be selected because the array has only %d dimensionsstatic StringCARTESIAN_BOUNDS_ERRORBounds error: Attempt to access element of %s array at index %s!static StringCOMBINE_SHAPE_MISMATCHshape of array (%s) given as parameter doesn't match the shape of the array (%s) on the left side!static StringCOMBINE_TYPE_MISMATCHAll parameters of %s must be either NDArray, Integer, Float or Double, but %s is given!static StringCOMBINE_TYPE_MISMATCH_WITH_COMPLEXAll parameters of %s must be either NDArray, Integer, Float, Double or Complex, but %s is given!static StringCONCATENATION_SHAPE_MISMATCHCannot concatenate %s array to the current array of shape %s along dimension %d!static StringCOPY_FROM_UNSUPPORTED_TYPECannot initialize new ComplexNDArray from NDArray of type %s!static StringCOPYFROM_INPUT_TYPE_DIFERSType of the two input arrays must be the same!static StringDIMENSION_MISMATCHNumber of indices (%d) doesn't match the number of dimensions (%d)!static StringDROPDIMS_NOT_SINGLETONCannot drop dimension %d because it is not singleton!static StringILLEGAL_SLICING_EXPRESSIONIllegal slicing expression: %sstatic StringINCOMPATIBLE_SHAPEThe shape of the input (%d) is incompatible with the given dimensions: %s!static StringINVALID_PERMUTATORThe permutation vector (%s) is not a valid permutation vector for the array to be permutated (%s)!static StringINVALID_RANGEInvalid range: [%d, %d)static StringINVALID_RANGE_EXPRESSIONInvalid range expression: %s!static StringITERATION_DIMENSIONS_MUST_BE_INCREASINGIteration dimensions must be provided in increasing order and no duplicates allowed!static StringITERATOR_OUT_OF_BOUNDSBounds error: Iterator already reached the end of the array!static StringLINEAR_BOUNDS_ERRORBounds error: Attempt to access element of array with %d elements at linear index %d!static StringMASK_DIMENSION_MISMATCHMask must have same shape as the array to be masked, but the array has shape of %s and the mask is of the shape %s!static StringNEGATIVE_NORMp must be a positive real number!static StringPARAMETER_MUST_BE_BETWEENParameter '%s' must be between %d and %d, but %d is given!static StringPERMUTATOR_SHAPE_MISMATCHThe permutation vector (%s) doesn't fit the shape of the array to be permutated (%s)!static StringRANGE_ZERO_STEPSIZEStep size cannot be zero!static StringREAD_FROM_FILE_WRONG_FILE_IDENTIFIERCannot read the given file: It is not a properly formatted NDArray file!static StringRESHAPE_LENGTH_MISMATCHCannot reshape %s array to new shape %s: Number of elements doesn't match!static StringSLICE_DIMENSION_MISMATCHDimension mismatch: cannot slice %s array with the following slicing expression: %sstatic StringSLICE_OUT_OF_BOUNDSBounds error: cannot slice %s array with the following slicing expression: %sstatic StringTOARRAY_COMPLEX_TO_REAL_ARRAYCannot copy complex values to a real array!static StringTOARRAY_DEPTH_MISMATCHThe depth of the input array (%d) doesn't match the number of dimensions (%d) in this NDArray!static StringUNSUPPORTED_TYPEReading values from an array of type %s is not supported!
-
-
-
Field Detail
-
CANNOT_FIND_DTYPE2
public static final String CANNOT_FIND_DTYPE2
Cannot find secondary data type (precision)!- See Also:
- Constant Field Values
-
COPYFROM_INPUT_TYPE_DIFERS
public static final String COPYFROM_INPUT_TYPE_DIFERS
Type of the two input arrays must be the same!- See Also:
- Constant Field Values
-
TOARRAY_DEPTH_MISMATCH
public static final String TOARRAY_DEPTH_MISMATCH
The depth of the input array (%d) doesn't match the number of dimensions (%d) in this NDArray!- See Also:
- Constant Field Values
-
TOARRAY_COMPLEX_TO_REAL_ARRAY
public static final String TOARRAY_COMPLEX_TO_REAL_ARRAY
Cannot copy complex values to a real array!- See Also:
- Constant Field Values
-
PARAMETER_MUST_BE_BETWEEN
public static final String PARAMETER_MUST_BE_BETWEEN
Parameter '%s' must be between %d and %d, but %d is given!- See Also:
- Constant Field Values
-
DIMENSION_MISMATCH
public static final String DIMENSION_MISMATCH
Number of indices (%d) doesn't match the number of dimensions (%d)!- See Also:
- Constant Field Values
-
CARTESIAN_BOUNDS_ERROR
public static final String CARTESIAN_BOUNDS_ERROR
Bounds error: Attempt to access element of %s array at index %s!- See Also:
- Constant Field Values
-
LINEAR_BOUNDS_ERROR
public static final String LINEAR_BOUNDS_ERROR
Bounds error: Attempt to access element of array with %d elements at linear index %d!- See Also:
- Constant Field Values
-
ITERATOR_OUT_OF_BOUNDS
public static final String ITERATOR_OUT_OF_BOUNDS
Bounds error: Iterator already reached the end of the array!- See Also:
- Constant Field Values
-
COMBINE_SHAPE_MISMATCH
public static final String COMBINE_SHAPE_MISMATCH
shape of array (%s) given as parameter doesn't match the shape of the array (%s) on the left side!- See Also:
- Constant Field Values
-
COMBINE_TYPE_MISMATCH_WITH_COMPLEX
public static final String COMBINE_TYPE_MISMATCH_WITH_COMPLEX
All parameters of %s must be either NDArray, Integer, Float, Double or Complex, but %s is given!- See Also:
- Constant Field Values
-
COMBINE_TYPE_MISMATCH
public static final String COMBINE_TYPE_MISMATCH
All parameters of %s must be either NDArray, Integer, Float or Double, but %s is given!- See Also:
- Constant Field Values
-
INVALID_RANGE_EXPRESSION
public static final String INVALID_RANGE_EXPRESSION
Invalid range expression: %s!- See Also:
- Constant Field Values
-
CONCATENATION_SHAPE_MISMATCH
public static final String CONCATENATION_SHAPE_MISMATCH
Cannot concatenate %s array to the current array of shape %s along dimension %d!- See Also:
- Constant Field Values
-
ARRAYS_DIFFER_IN_SHAPE
public static final String ARRAYS_DIFFER_IN_SHAPE
Shape of input arrays are not the same!- See Also:
- Constant Field Values
-
COPY_FROM_UNSUPPORTED_TYPE
public static final String COPY_FROM_UNSUPPORTED_TYPE
Cannot initialize new ComplexNDArray from NDArray of type %s!- See Also:
- Constant Field Values
-
INCOMPATIBLE_SHAPE
public static final String INCOMPATIBLE_SHAPE
The shape of the input (%d) is incompatible with the given dimensions: %s!- See Also:
- Constant Field Values
-
DROPDIMS_NOT_SINGLETON
public static final String DROPDIMS_NOT_SINGLETON
Cannot drop dimension %d because it is not singleton!- See Also:
- Constant Field Values
-
NEGATIVE_NORM
public static final String NEGATIVE_NORM
p must be a positive real number!- See Also:
- Constant Field Values
-
CANNOT_SELECT_DIM_NEGATIVE
public static final String CANNOT_SELECT_DIM_NEGATIVE
Axis %d cannot be selected- See Also:
- Constant Field Values
-
CANNOT_SELECT_DIM_OVERFLOW
public static final String CANNOT_SELECT_DIM_OVERFLOW
Axis %d cannot be selected because the array has only %d dimensions- See Also:
- Constant Field Values
-
CANNOT_DROP_DIM_NEGATIVE
public static final String CANNOT_DROP_DIM_NEGATIVE
Axis %d cannot be dropped- See Also:
- Constant Field Values
-
ITERATION_DIMENSIONS_MUST_BE_INCREASING
public static final String ITERATION_DIMENSIONS_MUST_BE_INCREASING
Iteration dimensions must be provided in increasing order and no duplicates allowed!- See Also:
- Constant Field Values
-
CANNOT_DROP_DIM_OVERFLOW
public static final String CANNOT_DROP_DIM_OVERFLOW
Axis %d cannot be dropped because the array has only %d dimensions- See Also:
- Constant Field Values
-
UNSUPPORTED_TYPE
public static final String UNSUPPORTED_TYPE
Reading values from an array of type %s is not supported!- See Also:
- Constant Field Values
-
PERMUTATOR_SHAPE_MISMATCH
public static final String PERMUTATOR_SHAPE_MISMATCH
The permutation vector (%s) doesn't fit the shape of the array to be permutated (%s)!- See Also:
- Constant Field Values
-
INVALID_PERMUTATOR
public static final String INVALID_PERMUTATOR
The permutation vector (%s) is not a valid permutation vector for the array to be permutated (%s)!- See Also:
- Constant Field Values
-
ILLEGAL_SLICING_EXPRESSION
public static final String ILLEGAL_SLICING_EXPRESSION
Illegal slicing expression: %s- See Also:
- Constant Field Values
-
SLICE_DIMENSION_MISMATCH
public static final String SLICE_DIMENSION_MISMATCH
Dimension mismatch: cannot slice %s array with the following slicing expression: %s- See Also:
- Constant Field Values
-
SLICE_OUT_OF_BOUNDS
public static final String SLICE_OUT_OF_BOUNDS
Bounds error: cannot slice %s array with the following slicing expression: %s- See Also:
- Constant Field Values
-
INVALID_RANGE
public static final String INVALID_RANGE
Invalid range: [%d, %d)- See Also:
- Constant Field Values
-
RANGE_ZERO_STEPSIZE
public static final String RANGE_ZERO_STEPSIZE
Step size cannot be zero!- See Also:
- Constant Field Values
-
MASK_DIMENSION_MISMATCH
public static final String MASK_DIMENSION_MISMATCH
Mask must have same shape as the array to be masked, but the array has shape of %s and the mask is of the shape %s!- See Also:
- Constant Field Values
-
RESHAPE_LENGTH_MISMATCH
public static final String RESHAPE_LENGTH_MISMATCH
Cannot reshape %s array to new shape %s: Number of elements doesn't match!- See Also:
- Constant Field Values
-
ALL_DIMS_DROPPED
public static final String ALL_DIMS_DROPPED
Cannot drop all dimensions!- See Also:
- Constant Field Values
-
READ_FROM_FILE_WRONG_FILE_IDENTIFIER
public static final String READ_FROM_FILE_WRONG_FILE_IDENTIFIER
Cannot read the given file: It is not a properly formatted NDArray file!- See Also:
- Constant Field Values
-
-