Commits

Gabriel Pichot  committed 9e11d49

FIXED : méthodes rowset et row de vector class

  • Participants
  • Parent commits 21085eb

Comments (0)

Files changed (1)

File matrixFactory.ml

   (* Vector Class {{{2 *)
   class vector ?data n = object(self)
     inherit matrix ~dims:(n,1) ?data () as super
-    method row n = super#get n 0
-    method rowset n = super#set n 0
+    method row n = super#get n 1
+    method rowset n = super#set n 1
     method norm () = sqrt (iterator n begin fun i sum -> 
      (Ev.norm2 (self#row i)) +. sum
     end 0.)