Documentation API of the 'cern.colt.matrix.impl.DenseObjectMatrix2D' Java class

Class DenseObjectMatrix2D

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class DenseObjectMatrix2Dextends ObjectMatrix2D
    Dense 2-d matrix holding Object elements.First see the package summary and javadoc tree view to get the broad picture.


    Internally holds one single contigous one-dimensional array, addressed in row major. Note that this implementation is not synchronized.

    Memory requirements:

    memory [bytes] = 8*rows()*columns().Thus, a 1000*1000 matrix uses 8 MB.

    Time complexity:

    O(1) (i.e. constant time) for the basic operationsget, getQuick, set, setQuick and size,

    Cells are internally addressed in row-major.Applications demanding utmost speed can exploit this fact.Setting/getting values in a loop row-by-row is quicker than column-by-column.Thus

       for (int row=0; row < rows; row++) {          for (int column=0; column < columns; column++) {                 matrix.setQuick(row,column,someValue);          }   }
    is quicker than
       for (int column=0; column < columns; column++) {          for (int row=0; row < rows; row++) {                 matrix.setQuick(row,column,someValue);          }   }
    See Also:
    Serialized Form

Warning: You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.