/** * Returns the percentage of this that is non-zero elements * * @return the percentage of this that is non-zero elements */ final public double getNonZeroPercent() { return ((double) getNonZeroCount()) / ((double) (getNumRows() * getNumColumns())); }
/** * Returns the percentage of this that is non-zero elements * * @return the percentage of this that is non-zero elements */ final public double getNonZeroPercent() { return ((double) getNonZeroCount()) / ((double) (getNumRows() * getNumColumns())); }
/** * Returns the percentage of this that is non-zero elements * * @return the percentage of this that is non-zero elements */ final public double getNonZeroPercent() { return ((double) getNonZeroCount()) / ((double) (getNumRows() * getNumColumns())); }
final DenseMatrix d) int nnz = d.getNonZeroCount(); this.numCols = d.getNumColumns(); this.numRows = d.getNumRows();
final DenseMatrix d) int nnz = d.getNonZeroCount(); this.numCols = d.getNumColumns(); this.numRows = d.getNumRows();
final DenseMatrix d) int nnz = d.getNonZeroCount(); this.numCols = d.getNumColumns(); this.numRows = d.getNumRows();