AbstractMatrix
cern.colt.matrix

Class AbstractMatrix

    • Method Detail

      • ensureCapacity

        public void ensureCapacity(int minNonZeros)
        Ensures that the receiver can hold at least the specified number of non-zero (non-null) cells without needing to allocate new internal memory. If necessary, allocates new internal memory and increases the capacity of the receiver.

        This default implementation does nothing. Override this method if necessary.

        Parameters:
        minNonZeros - the desired minimum number of non-zero (non-null) cells.
      • isView

        public boolean isView()
        Returns whether the receiver is a view or not.
      • size

        public abstract long size()
        Returns the number of cells.
      • trimToSize

        public void trimToSize()
        Releases any superfluous internal memory. An application can use this operation to minimize the storage of the receiver.

        This default implementation does nothing. Override this method if necessary.

SCaVis 2.1 © jWork.ORG