AbstractMatrix3D
cern.colt.matrix.impl

Class AbstractMatrix3D

    • Method Detail

      • checkShape

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

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

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

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

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

        public int slices()
        Returns the number of slices.
      • toStringShort

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

SCaVis 2.2 © jWork.ORG