Interface Matrix

  • All Known Implementing Classes:
    DoubleArray, DoubleMatrix, IntArray

    public interface Matrix
    Base interface for all matrix types.

    An n-dimensional matrix of elements of a fixed size. A 1-dimensional matrix is typically known as an array.

    • Method Detail

      • dimensions

        int dimensions()
        Gets the number of dimensions of the matrix.

        Each matrix type has a fixed number of dimensions, returned by this method.

        Returns:
        the dimensions of the matrix
      • size

        int size()
        Gets the size of the matrix.

        This is the total number of elements in the matrix.

        Returns:
        the size of the matrix