]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/least-squares.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / least-squares.cc
index b851c434eb651d0091d50b88f89a4260a6e19c27..c7ca185bbfa4ea8de4763339bbaf30c65dab0edb 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1996--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1996--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "least-squares.hh"
 
 void
 minimise_least_squares (Real *coef, Real *offset,
-                       Array<Offset> const &input)
+                       vector<Offset> const &input)
 {
   Real sx = 0.0;
   Real sy = 0.0;
   Real sqx = 0.0;
   Real sxy = 0.0;
 
-  for (int i = 0; i < input.size ();i++)
+  for (vsize i = 0; i < input.size ();i++)
     {
       Real x = input[i][X_AXIS];
       Real y = input[i][Y_AXIS];