Mercurial > octave
comparison liboctave/array/boolSparse.cc @ 18084:8e056300994b
Follow coding convention of defining and initializing only 1 variable per line in liboctave.
* liboctave/array/Array-b.cc, liboctave/array/Array-util.cc,
liboctave/array/Array.cc, liboctave/array/CDiagMatrix.cc,
liboctave/array/CMatrix.cc, liboctave/array/CSparse.cc,
liboctave/array/MDiagArray2.cc, liboctave/array/MatrixType.cc,
liboctave/array/PermMatrix.cc, liboctave/array/Sparse.cc,
liboctave/array/Sparse.h, liboctave/array/boolSparse.cc,
liboctave/array/dDiagMatrix.cc, liboctave/array/dMatrix.cc,
liboctave/array/dSparse.cc, liboctave/array/dim-vector.cc,
liboctave/array/fCDiagMatrix.cc, liboctave/array/fCMatrix.cc,
liboctave/array/fDiagMatrix.cc, liboctave/array/fMatrix.cc,
liboctave/array/idx-vector.cc, liboctave/array/idx-vector.h,
liboctave/numeric/CmplxLU.cc, liboctave/numeric/CmplxQR.cc,
liboctave/numeric/base-qr.cc, liboctave/numeric/bsxfun-defs.cc,
liboctave/numeric/bsxfun.h, liboctave/numeric/dbleLU.cc,
liboctave/numeric/dbleQR.cc, liboctave/numeric/fCmplxLU.cc,
liboctave/numeric/fCmplxQR.cc, liboctave/numeric/floatLU.cc,
liboctave/numeric/floatQR.cc, liboctave/numeric/lo-specfun.cc,
liboctave/numeric/oct-convn.cc, liboctave/numeric/oct-norm.cc,
liboctave/numeric/sparse-dmsolve.cc, liboctave/operators/mx-inlines.cc,
liboctave/operators/mx-op-defs.h, liboctave/util/caseless-str.h,
liboctave/util/kpse.cc, liboctave/util/lo-utils.cc,
liboctave/util/oct-binmap.h, liboctave/util/oct-cmplx.h,
liboctave/util/oct-inttypes.cc, liboctave/util/oct-inttypes.h,
liboctave/util/oct-sort.cc:
Follow coding convention of defining and initializing only 1 variable per line in liboctave.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 04 Dec 2013 22:13:18 -0800 |
parents | 49a5a4be04a1 |
children | 65554f5847ac |
comparison
equal
deleted
inserted
replaced
18083:938f01339043 | 18084:8e056300994b |
---|---|
141 | 141 |
142 SparseBoolMatrix | 142 SparseBoolMatrix |
143 SparseBoolMatrix::any (int dim) const | 143 SparseBoolMatrix::any (int dim) const |
144 { | 144 { |
145 Sparse<bool> retval; | 145 Sparse<bool> retval; |
146 octave_idx_type nr = rows (), nc = cols (), nz = nnz (); | 146 octave_idx_type nr = rows (); |
147 octave_idx_type nc = cols (); | |
148 octave_idx_type nz = nnz (); | |
147 if (dim == -1) | 149 if (dim == -1) |
148 dim = (nr == 1 && nc != 1) ? 1 : 0; | 150 dim = (nr == 1 && nc != 1) ? 1 : 0; |
149 | 151 |
150 if (dim == 0) | 152 if (dim == 0) |
151 { | 153 { |
186 | 188 |
187 SparseMatrix | 189 SparseMatrix |
188 SparseBoolMatrix::sum (int dim) const | 190 SparseBoolMatrix::sum (int dim) const |
189 { | 191 { |
190 Sparse<double> retval; | 192 Sparse<double> retval; |
191 octave_idx_type nr = rows (), nc = cols (), nz = nnz (); | 193 octave_idx_type nr = rows (); |
194 octave_idx_type nc = cols (); | |
195 octave_idx_type nz = nnz (); | |
192 if (dim == -1) | 196 if (dim == -1) |
193 dim = (nr == 1 && nc != 1) ? 1 : 0; | 197 dim = (nr == 1 && nc != 1) ? 1 : 0; |
194 | 198 |
195 if (dim == 0) | 199 if (dim == 0) |
196 { | 200 { |