]> www.ginac.de Git - ginac.git/blobdiff - check/time_vandermonde.cpp
- cint/*: Revamped the launch-scheme for ginaccint.bin. It must be done
[ginac.git] / check / time_vandermonde.cpp
index 364ca5a5ec8c340302494a53f261fa0304e26169..cfef6ea2be13b94777c095f2f19949db174f1a7f 100644 (file)
@@ -33,12 +33,14 @@ static unsigned vandermonde_det(unsigned size)
     
     // construct Vandermonde matrix:
     matrix M(size,size);
-    for (unsigned ro=0; ro<size; ++ro)
-        for (unsigned co=0; co<size; ++co)
+    for (unsigned ro=0; ro<size; ++ro) {
+        for (unsigned co=0; co<size; ++co) {
             if (ro%2)
                 M.set(ro,co,pow(-pow(a,1+ro/2),co));
             else
                 M.set(ro,co,pow(pow(a,1+ro/2),co));
+        }
+    }
     
     // compute determinant:
     ex vdet = M.determinant();