Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /inst/@galois/conv.m [e9066d] .. [b37be7] Maximize Restore

  Switch to side-by-side view

--- a/inst/@galois/conv.m
+++ b/inst/@galois/conv.m
@@ -31,17 +31,17 @@
   endif
 
   if (!isgalois (a) && !isgalois (b))
-    error("conv: at least one argument must be a galois variable");
+    error ("conv: at least one argument must be a galois variable");
   elseif (!isgalois (a))
-    a = gf(a, b.m, b.prim_poly);
+    a = gf (a, b.m, b.prim_poly);
   elseif (!isgalois (b))
-    b = gf(b, a.m, a.prim_poly);
+    b = gf (b, a.m, a.prim_poly);
   elseif (a.m != b.m && a.prim_poly != b.prim_poly)
-    error("conv: both vectors must be in the same galois field");
+    error ("conv: both vectors must be in the same galois field");
   endif
 
-  if (min(size(a)) > 1 || min(size(b)) > 1)
-    error("conv: both arguments must be vectors");
+  if (min (size (a)) > 1 || min (size (b)) > 1)
+    error ("conv: both arguments must be vectors");
   endif
 
   la = length (a);
@@ -62,16 +62,16 @@
     if (ly > lb)
       ## Can't concatenate galois variables like this yet
       ## x = [b, (zeros (1, ly - lb))];
-      x = gf([b, (zeros (1, ly - lb))], b.m, b.prim_poly);
+      x = gf ([b, (zeros (1, ly - lb))], b.m, b.prim_poly);
     else
       x = b;
     endif
     y = filter (a, 1, x);
   else
-    if(ly > la)
+    if (ly > la)
       ## Can't concatenate galois variables like this yet
       ## x = [a, (zeros (1, ly - la))];
-      x = gf([a, (zeros (1, ly - la))], a.m, a.prim_poly);
+      x = gf ([a, (zeros (1, ly - la))], a.m, a.prim_poly);
     else
       x = a;
     endif