src/main/java/com/osiris/maths/human/Matrix.java
/**
     * Multiplies this matrix with the provided number.
     *
     * @return a new matrix containing the result.
     */
Multiplies this matrix with the provided number.
@return a new matrix containing the result.
Multiplies this matrix with the provided number . @return a new matrix containing the result .
public Matrix multiply(Double num) {
        Matrix newM = new Matrix(rowsCount, columnsCount);
        for (int i = 0; i < rows.size(); i++) {
            List<Double> row = rows.get(i);
            List<Double> newRow = new ArrayList<>(row.size());
            newM.setRow(i, newRow);
            for (Double d : row) {
                newRow.add(d * num);
            }
        }
        return newM;
    }
public Matrix multiply ( Double num ) { Matrix newM = new Matrix ( rowsCount , columnsCount ) ; for ( int i = 0 ; i < rows . size ( ) ; i ++ ) { List < Double > row = rows . get ( i ) ; List < Double > newRow = new ArrayList < > ( row . size ( ) ) ; newM . setRow ( i , newRow ) ; for ( Double d : row ) { newRow . add ( d * num ) ; } } return newM ; }
Multiplies this matrix with the provided number.
Multiplies this matrix with the provided number .