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

Method mutableAdd

JSAT/src/jsat/linear/GenericMatrix.java:42–51  ·  view source on GitHub ↗
(double c, Matrix b)

Source from the content-addressed store, hash-verified

40 abstract protected Matrix getMatrixOfSameType(int rows, int cols);
41
42 @Override
43 public void mutableAdd(double c, Matrix b)
44 {
45 if(!sameDimensions(this, b))
46 throw new ArithmeticException("Matrix dimensions do not agree");
47
48 for(int i = 0; i < rows(); i++)
49 for(int j = 0; j < cols(); j++)
50 increment(i, j, c*b.get(i, j));
51 }
52
53 @Override
54 public void mutableAdd(final double c, final Matrix b, ExecutorService threadPool)

Callers

nothing calls this directly

Calls 9

sameDimensionsMethod · 0.80
submitMethod · 0.80
logMethod · 0.80
getNameMethod · 0.65
rowsMethod · 0.45
colsMethod · 0.45
incrementMethod · 0.45
getMethod · 0.45
awaitMethod · 0.45

Tested by

no test coverage detected