Mercurial > hg > octave-nkf
changeset 13231:20ed9548070f
maint: style fixes for cellfun
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 26 Sep 2011 13:09:02 -0400 |
parents | c73cc5b67feb |
children | e066d173aae6 |
files | src/DLD-FUNCTIONS/cellfun.cc |
diffstat | 1 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/cellfun.cc +++ b/src/DLD-FUNCTIONS/cellfun.cc @@ -112,42 +112,42 @@ if (name == "isempty") { boolNDArray result (f_args.dims ()); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) result(count) = f_args.elem(count).is_empty (); retval(0) = result; } else if (name == "islogical") { boolNDArray result (f_args.dims ()); - for (octave_idx_type count= 0; count < k ; count++) + for (octave_idx_type count= 0; count < k; count++) result(count) = f_args.elem(count).is_bool_type (); retval(0) = result; } else if (name == "isreal") { boolNDArray result (f_args.dims ()); - for (octave_idx_type count= 0; count < k ; count++) + for (octave_idx_type count= 0; count < k; count++) result(count) = f_args.elem(count).is_real_type (); retval(0) = result; } else if (name == "length") { NDArray result (f_args.dims ()); - for (octave_idx_type count= 0; count < k ; count++) + for (octave_idx_type count= 0; count < k; count++) result(count) = static_cast<double> (f_args.elem(count).length ()); retval(0) = result; } else if (name == "ndims") { NDArray result (f_args.dims ()); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) result(count) = static_cast<double> (f_args.elem(count).ndims ()); retval(0) = result; } else if (name == "prodofsize" || name == "numel") { NDArray result (f_args.dims ()); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) result(count) = static_cast<double> (f_args.elem(count).numel ()); retval(0) = result; } @@ -163,7 +163,7 @@ if (! error_state) { NDArray result (f_args.dims ()); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) { dim_vector dv = f_args.elem(count).dims (); if (d < dv.length ()) @@ -183,7 +183,7 @@ { std::string class_name = args(2).string_value(); boolNDArray result (f_args.dims ()); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) result(count) = (f_args.elem(count).class_name() == class_name); retval(0) = result; @@ -523,7 +523,7 @@ OCTAVE_LOCAL_BUFFER (octave_value, retv, nargout1); - for (octave_idx_type count = 0; count < k ; count++) + for (octave_idx_type count = 0; count < k; count++) { for (int j = 0; j < nargin; j++) {