Mercurial > hg > octave-lyh
diff liboctave/sparse-base-lu.cc @ 5275:23b37da9fd5b
[project @ 2005-04-08 16:07:35 by jwe]
author | jwe |
---|---|
date | Fri, 08 Apr 2005 16:07:37 +0000 |
parents | 57077d0ddc8e |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/liboctave/sparse-base-lu.cc +++ b/liboctave/sparse-base-lu.cc @@ -29,11 +29,11 @@ p_type sparse_base_lu <lu_type, lu_elt_type, p_type, p_elt_type> :: Pr (void) const { - int nr = Lfact.rows (); + octave_idx_type nr = Lfact.rows (); p_type Pout (nr, nr, nr); - for (int i = 0; i < nr; i++) + for (octave_idx_type i = 0; i < nr; i++) { Pout.cidx (i) = i; Pout.ridx (P (i)) = i; @@ -48,11 +48,11 @@ p_type sparse_base_lu <lu_type, lu_elt_type, p_type, p_elt_type> :: Pc (void) const { - int nc = Ufact.cols (); + octave_idx_type nc = Ufact.cols (); p_type Pout (nc, nc, nc); - for (int i = 0; i < nc; i++) + for (octave_idx_type i = 0; i < nc; i++) { Pout.cidx (i) = i; Pout.ridx (i) = Q (i);