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

Method multRow

JSAT/src/jsat/linear/RowColumnOps.java:59–63  ·  view source on GitHub ↗

Updates the values of row i in the given matrix to be A[i,:] = A[i,:] c @param A the matrix to perform he update on @param i the row to update @param start the first index of the row to update from (inclusive) @param to the last index of the row to update (exclusive) @param c the constant

(Matrix A, int i, int start, int to, double c)

Source from the content-addressed store, hash-verified

57 * @param c the constant to multiply each element by
58 */
59 public static void multRow(Matrix A, int i, int start, int to, double c)
60 {
61 for(int j = start; j < to; j++)
62 A.set(i, j, A.get(i, j)*c);
63 }
64
65 /**
66 * Updates the values of row <tt>i</tt> in the given matrix to be A[i,:] = A[i,:] * c

Callers 1

diagMultMethod · 0.95

Calls 4

setMethod · 0.45
getMethod · 0.45
colsMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected