Documentation of 'cern.colt.matrix.AbstractMatrix1D' Java class
AbstractMatrix1D
cern.colt.matrix

Class AbstractMatrix1D

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void checkSize(AbstractMatrix1D B)
      Sanity check for operations requiring two matrices with the same size.
      long index(int rank)
      Returns the position of the element with the given relative rank within the (virtual or non-virtual) internal 1-dimensional array.
      long size()
      Returns the number of cells.
      int stride()
      Returns the stride.
      java.lang.String toStringShort()
      Returns a string representation of the receiver's shape.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • checkSize

        public void checkSize(AbstractMatrix1D B)
        Sanity check for operations requiring two matrices with the same size.
        Throws:
        java.lang.IllegalArgumentException - if size() != B.size().
      • index

        public long index(int rank)
        Returns the position of the element with the given relative rank within the (virtual or non-virtual) internal 1-dimensional array. You may want to override this method for performance.
        Parameters:
        rank - the rank of the element.
      • size

        public long size()
        Returns the number of cells.
        Specified by:
        size in class AbstractMatrix
      • stride

        public int stride()
        Returns the stride.
      • toStringShort

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.