Mercurial > octave
comparison libinterp/corefcn/data.cc @ 18112:b560bac0fca2
maint: Don't use space between 'args' and '(' when doing indexing.
* libinterp/corefcn/__contourc__.cc, libinterp/corefcn/__pchip_deriv__.cc,
libinterp/corefcn/besselj.cc, libinterp/corefcn/bsxfun.cc,
libinterp/corefcn/cellfun.cc, libinterp/corefcn/data.cc,
libinterp/corefcn/dlmread.cc, libinterp/corefcn/file-io.cc,
libinterp/corefcn/graphics.cc, libinterp/corefcn/help.cc,
libinterp/corefcn/lu.cc, libinterp/corefcn/matrix_type.cc,
libinterp/corefcn/pr-output.cc, libinterp/corefcn/sparse.cc,
libinterp/corefcn/strfns.cc, libinterp/corefcn/syscalls.cc,
libinterp/corefcn/tril.cc:
maint: Don't use space between 'args' and '(' when indexing.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 05 Dec 2013 16:11:14 -0800 |
parents | 6a71e5030df5 |
children | a86d608c413c |
comparison
equal
deleted
inserted
replaced
18110:2217bc116aa9 | 18112:b560bac0fca2 |
---|---|
1835 // tmp = octave_value_typeinfo::lookup_type | 1835 // tmp = octave_value_typeinfo::lookup_type |
1836 // (args(1).type_name()); | 1836 // (args(1).type_name()); |
1837 // and then directly resize. However, for some types there might | 1837 // and then directly resize. However, for some types there might |
1838 // be some additional setup needed, and so this should be avoided. | 1838 // be some additional setup needed, and so this should be avoided. |
1839 | 1839 |
1840 octave_value tmp = args (0); | 1840 octave_value tmp = args(0); |
1841 tmp = tmp.resize (dim_vector (0,0)).resize (dv); | 1841 tmp = tmp.resize (dim_vector (0,0)).resize (dv); |
1842 | 1842 |
1843 if (error_state) | 1843 if (error_state) |
1844 return retval; | 1844 return retval; |
1845 | 1845 |
1849 for (int j = 0; j < n_args; j++) | 1849 for (int j = 0; j < n_args; j++) |
1850 { | 1850 { |
1851 // Can't fast return here to skip empty matrices as something | 1851 // Can't fast return here to skip empty matrices as something |
1852 // like cat (1,[],single ([])) must return an empty matrix of | 1852 // like cat (1,[],single ([])) must return an empty matrix of |
1853 // the right type. | 1853 // the right type. |
1854 tmp = do_cat_op (tmp, args (j), ra_idx); | 1854 tmp = do_cat_op (tmp, args(j), ra_idx); |
1855 | 1855 |
1856 if (error_state) | 1856 if (error_state) |
1857 return retval; | 1857 return retval; |
1858 | 1858 |
1859 dim_vector dv_tmp = args (j).dims (); | 1859 dim_vector dv_tmp = args(j).dims (); |
1860 | 1860 |
1861 if (dim >= dv_len) | 1861 if (dim >= dv_len) |
1862 { | 1862 { |
1863 if (j > 1) | 1863 if (j > 1) |
1864 error ("%s: indexing error", fname.c_str ()); | 1864 error ("%s: indexing error", fname.c_str ()); |