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 String
ALL_DIMS_DROPPED
Cannot drop all dimensions!static String
ARRAYS_DIFFER_IN_SHAPE
Shape of input arrays are not the same!static String
CANNOT_DROP_DIM_NEGATIVE
Axis %d cannot be droppedstatic String
CANNOT_DROP_DIM_OVERFLOW
Axis %d cannot be dropped because the array has only %d dimensionsstatic String
CANNOT_FIND_DTYPE2
Cannot find secondary data type (precision)!static String
CANNOT_SELECT_DIM_NEGATIVE
Axis %d cannot be selectedstatic String
CANNOT_SELECT_DIM_OVERFLOW
Axis %d cannot be selected because the array has only %d dimensionsstatic String
CARTESIAN_BOUNDS_ERROR
Bounds error: Attempt to access element of %s array at index %s!static String
COMBINE_SHAPE_MISMATCH
shape of array (%s) given as parameter doesn't match the shape of the array (%s) on the left side!static String
COMBINE_TYPE_MISMATCH
All parameters of %s must be either NDArray, Integer, Float or Double, but %s is given!static String
COMBINE_TYPE_MISMATCH_WITH_COMPLEX
All parameters of %s must be either NDArray, Integer, Float, Double or Complex, but %s is given!static String
CONCATENATION_SHAPE_MISMATCH
Cannot concatenate %s array to the current array of shape %s along dimension %d!static String
COPY_FROM_UNSUPPORTED_TYPE
Cannot initialize new ComplexNDArray from NDArray of type %s!static String
COPYFROM_INPUT_TYPE_DIFERS
Type of the two input arrays must be the same!static String
DIMENSION_MISMATCH
Number of indices (%d) doesn't match the number of dimensions (%d)!static String
DROPDIMS_NOT_SINGLETON
Cannot drop dimension %d because it is not singleton!static String
ILLEGAL_SLICING_EXPRESSION
Illegal slicing expression: %sstatic String
INCOMPATIBLE_SHAPE
The shape of the input (%d) is incompatible with the given dimensions: %s!static String
INVALID_PERMUTATOR
The permutation vector (%s) is not a valid permutation vector for the array to be permutated (%s)!static String
INVALID_RANGE
Invalid range: [%d, %d)static String
INVALID_RANGE_EXPRESSION
Invalid range expression: %s!static String
ITERATION_DIMENSIONS_MUST_BE_INCREASING
Iteration dimensions must be provided in increasing order and no duplicates allowed!static String
ITERATOR_OUT_OF_BOUNDS
Bounds error: Iterator already reached the end of the array!static String
LINEAR_BOUNDS_ERROR
Bounds error: Attempt to access element of array with %d elements at linear index %d!static 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!static String
NEGATIVE_NORM
p must be a positive real number!static String
PARAMETER_MUST_BE_BETWEEN
Parameter '%s' must be between %d and %d, but %d is given!static String
PERMUTATOR_SHAPE_MISMATCH
The permutation vector (%s) doesn't fit the shape of the array to be permutated (%s)!static String
RANGE_ZERO_STEPSIZE
Step size cannot be zero!static String
READ_FROM_FILE_WRONG_FILE_IDENTIFIER
Cannot read the given file: It is not a properly formatted NDArray file!static String
RESHAPE_LENGTH_MISMATCH
Cannot reshape %s array to new shape %s: Number of elements doesn't match!static String
SLICE_DIMENSION_MISMATCH
Dimension mismatch: cannot slice %s array with the following slicing expression: %sstatic String
SLICE_OUT_OF_BOUNDS
Bounds error: cannot slice %s array with the following slicing expression: %sstatic String
TOARRAY_COMPLEX_TO_REAL_ARRAY
Cannot copy complex values to a real array!static String
TOARRAY_DEPTH_MISMATCH
The depth of the input array (%d) doesn't match the number of dimensions (%d) in this NDArray!static String
UNSUPPORTED_TYPE
Reading 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
-
-