Interface MatrixFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Matrix create​(int rowCount, int columnCount, int estimatedNonZeroValueCount)
      Create a matrix with m rows and n column.
    • Method Detail

      • create

        Matrix create​(int rowCount,
                      int columnCount,
                      int estimatedNonZeroValueCount)
        Create a matrix with m rows and n column. An estimation of the number of non zero values may be provided for internal capacity reservation.
        Parameters:
        rowCount - row count
        columnCount - column count
        estimatedNonZeroValueCount - estimation of non zero values
        Returns:
        a matrix with rowCount rows and columnCount columns