MCPcopy Create free account
hub / github.com/WinVector/Logistic / mult

Method mult

src/com/winvector/opt/def/LinUtil.java:24–35  ·  view source on GitHub ↗
(final double[][] a, final double[] x, final double[] r)

Source from the content-addressed store, hash-verified

22 }
23
24 public static double[] mult(final double[][] a, final double[] x, final double[] r) {
25 final int m = a.length;
26 final int n = x.length;
27 for(int i=0;i<m;++i) {
28 double t = 0.0;
29 for(int j=0;j<n;++j) {
30 t += a[i][j]*x[j];
31 }
32 r[i] = t;
33 }
34 return r;
35 }
36
37 public static double[] mult(final double[][] a, final double[] x) {
38 final int m = a.length;

Callers 3

checkSolnMethod · 0.95
solveMethod · 0.95
solveMethod · 0.80

Calls

no outgoing calls

Tested by 1

checkSolnMethod · 0.76