AbstractMatrix2D
cern.colt.matrix

Class AbstractMatrix2D

    • Method Detail

      • checkShape

        public void checkShape(AbstractMatrix2D B)
        Sanity check for operations requiring two matrices with the same number of columns and rows.
        Throws:
        IllegalArgumentException - if columns() != B.columns() || rows() != B.rows().
      • checkShape

        public void checkShape(AbstractMatrix2D B,              AbstractMatrix2D C)
        Sanity check for operations requiring matrices with the same number of columns and rows.
        Throws:
        IllegalArgumentException - if columns() != B.columns() || rows() != B.rows() || columns() != C.columns() || rows() != C.rows() .
      • columns

        public int columns()
        Returns the number of columns.
      • columnStride

        public int columnStride()
        Returns the column stride.
      • index

        public long index(int row,         int column)
        Returns the position of the given coordinate within the (virtual or non-virtual) internal 1-dimensional array.
        Parameters:
        row - the index of the row-coordinate.
        column - the index of the column-coordinate.
      • rows

        public int rows()
        Returns the number of rows.
      • rowStride

        public int rowStride()
        Returns the row stride.
      • size

        public long size()
        Returns the number of cells which is rows()*columns().
        Specified by:
        size in class AbstractMatrix
      • toStringShort

        public String toStringShort()
        Returns a string representation of the receiver's shape.

SCaVis 2.2 © jWork.ORG