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

Method dot

src/com/winvector/opt/def/LinUtil.java:15–22  ·  view source on GitHub ↗
(final double[] a, final double[] b)

Source from the content-addressed store, hash-verified

13 }
14
15 public static double dot(final double[] a, final double[] b) {
16 final int dim = a.length;
17 double r = 0.0;
18 for(int i=0;i<dim;++i) {
19 r += a[i]*b[i];
20 }
21 return r;
22 }
23
24 public static double[] mult(final double[][] a, final double[] x, final double[] r) {
25 final int m = a.length;

Callers 2

newtonStepMethod · 0.95
solveMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected