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

Method mutableAdd

JSAT/src/jsat/linear/SparseMatrix.java:76–83  ·  view source on GitHub ↗
(double c, Matrix B)

Source from the content-addressed store, hash-verified

74 }
75
76 @Override
77 public void mutableAdd(double c, Matrix B)
78 {
79 if(!Matrix.sameDimensions(this, B))
80 throw new ArithmeticException("Matrices must be the same dimension to be added");
81 for( int i = 0; i < rows.length; i++)
82 rows[i].mutableAdd(c, B.getRowView(i));
83 }
84
85 @Override
86 public void mutableAdd(final double c, final Matrix B, ExecutorService threadPool)

Callers 2

runMethod · 0.45
transposeMultiplyMethod · 0.45

Calls 6

sameDimensionsMethod · 0.95
submitMethod · 0.80
logMethod · 0.80
getNameMethod · 0.65
getRowViewMethod · 0.45
awaitMethod · 0.45

Tested by

no test coverage detected