]> gitweb.michael.orlitzky.com - octave.git/blobdiff - c_inner_product.m
Update comments in the *conjugate_gradient_method() functions.
[octave.git] / c_inner_product.m
index 0ff7f9631dee488c7365d8d4df7676fca131c0e4..1d7bfd1e67122823724ebafb8ee919fe58c9980e 100644 (file)
@@ -19,6 +19,6 @@ function ip = c_inner_product(w, a, b, v1, v2)
   ##
   ## The inner product <v1, v2>.
   ##
-  integrand = @(x) w(x)*v1(x)*v2(x)
-  ip = quad(integrand, a, b)
+  integrand = @(x) w(x)*v1(x)*v2(x);
+  ip = quad(integrand, a, b);
 end