Søren Hauberg wrote: > tir, 06 04 2010 kl. 16:47 +0530, skrev n...@itimes.com: > >> I think I have got the bug. :) >> In octcdf package in ov-ncvar.h instead of >> >> octave_idx_type numel(const octave_value_list&) >> { >> return dims().numel(); >> }; >> >> it should be >> >> octave_idx_type numel(const octave_value_list&) >> { >> return 1; >> }; >> > > I don't claim to understand the 'octcdf' code, but the current code does > seem correct to me. What is the motivation behind your suggested change? > > Søren > >
The return value of numel changes the semantics of indexing operations. David ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev