Variable eConst Private

e: {
    INDEX_OUT_OF_RANGE: string;
    INVALID_ARGUMENTS: string;
    INVALID_ROTATE_ANGLE: string;
    MATRIX_DIMENSION_MISMATCH: ((method?) => "Matrix dimension mismatch: The number of columns in the first matrix must be equal to the number of rows" | "Matrix dimension mismatch: The matrices must have the same dimensions (n x m)." | "Matrix dimensions mismatch: The matrices must have compatible dimensions for this operation.");
    MATRIX_SHAPE_MISMATCH: string;
    NON_SQUARE_MATRIX: string;
    ZERO_MATRIX_DETERMINANT: ((method?) => string);
} = ...

Type declaration

  • INDEX_OUT_OF_RANGE: string
  • INVALID_ARGUMENTS: string
  • INVALID_ROTATE_ANGLE: string
  • MATRIX_DIMENSION_MISMATCH: ((method?) => "Matrix dimension mismatch: The number of columns in the first matrix must be equal to the number of rows" | "Matrix dimension mismatch: The matrices must have the same dimensions (n x m)." | "Matrix dimensions mismatch: The matrices must have compatible dimensions for this operation.")
      • (method?): "Matrix dimension mismatch: The number of columns in the first matrix must be equal to the number of rows" | "Matrix dimension mismatch: The matrices must have the same dimensions (n x m)." | "Matrix dimensions mismatch: The matrices must have compatible dimensions for this operation."
      • Parameters

        • method: string = ""

        Returns "Matrix dimension mismatch: The number of columns in the first matrix must be equal to the number of rows" | "Matrix dimension mismatch: The matrices must have the same dimensions (n x m)." | "Matrix dimensions mismatch: The matrices must have compatible dimensions for this operation."

  • MATRIX_SHAPE_MISMATCH: string
  • NON_SQUARE_MATRIX: string
  • ZERO_MATRIX_DETERMINANT: ((method?) => string)
      • (method?): string
      • Parameters

        • method: string = ""

        Returns string

Constant

ERROR_MESSAGES

Memberof

Services

Description

An object containing error messages.

Example

ERROR_MESSAGES.MATRIX_DIMENSION_MISMATCH("multiplication");
// => "Matrix dimension mismatch: The number of columns in the first matrix must be equal to the number of rows"

ERROR_MESSAGES.INVALID_ROTATE_ANGLE;
// => "Invalid rotate angle: The angle required to be a multiples of 90 degrees."

Generated using TypeDoc