Mercurial > jwe > octave
comparison liboctave/array/Sparse.cc @ 21120:499b851fbfae
Replace pattern if/err_XXX/else/code with if/err_XXX/ code.
* schur.cc, ov-complex.h, ov-cx-mat.cc, ov-cx-sparse.cc, ov-float.h,
ov-flt-complex.h, ov-flt-cx-mat.cc, ov-flt-re-mat.cc, ov-range.cc,
ov-re-mat.cc, ov-re-sparse.cc, ov-scalar.h, ov-str-mat.cc, ops.h, pt-idx.cc,
Array.cc, CColVector.cc, CMatrix.cc, CRowVector.cc, MSparse.cc, PermMatrix.cc,
Sparse.cc, dColVector.cc, dMatrix.cc, dRowVector.cc, dSparse.cc,
fCColVector.cc, fCMatrix.cc, fCRowVector.cc, fColVector.cc, fMatrix.cc,
fRowVector.cc:
Replace pattern if/err_XXX/else/code with if/err_XXX/ code.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 20 Jan 2016 16:58:59 -0800 |
parents | 3ac9f47fb04b |
children | 7cac4e7458f2 |
comparison
equal
deleted
inserted
replaced
21119:90cd0f9442d5 | 21120:499b851fbfae |
---|---|
1163 | 1163 |
1164 const dim_vector idx_dims = idx.orig_dimensions (); | 1164 const dim_vector idx_dims = idx.orig_dimensions (); |
1165 | 1165 |
1166 if (idx.extent (nel) > nel) | 1166 if (idx.extent (nel) > nel) |
1167 err_del_index_out_of_range (true, idx.extent (nel), nel); | 1167 err_del_index_out_of_range (true, idx.extent (nel), nel); |
1168 else if (nc == 1) | 1168 |
1169 if (nc == 1) | |
1169 { | 1170 { |
1170 // Sparse column vector. | 1171 // Sparse column vector. |
1171 const Sparse<T> tmp = *this; // constant copy to prevent COW. | 1172 const Sparse<T> tmp = *this; // constant copy to prevent COW. |
1172 | 1173 |
1173 octave_idx_type lb, ub; | 1174 octave_idx_type lb, ub; |