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)
| 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 |
nothing calls this directly
no test coverage detected