MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / copyTo

Method copyTo

JSAT/src/jsat/linear/Matrix.java:844–850  ·  view source on GitHub ↗

Copes the values of this matrix into the other matrix of the same dimensions @param other the matrix to overwrite the values of

(Matrix other)

Source from the content-addressed store, hash-verified

842 * @param other the matrix to overwrite the values of
843 */
844 public void copyTo(Matrix other)
845 {
846 if (this.rows() != other.rows() || this.cols() != other.cols())
847 throw new ArithmeticException("Matrices are not of the same dimension");
848 for(int i = 0; i < rows(); i++)
849 this.getRowView(i).copyTo(other.getRowView(i));
850 }
851
852 /**
853 * Alters row i of <i>this</i> matrix, such that

Callers

nothing calls this directly

Calls 3

rowsMethod · 0.95
colsMethod · 0.95
getRowViewMethod · 0.95

Tested by

no test coverage detected