[Pkg-octave-devel] Bug#706376: Bug#706376: Bug#706376: octave: sparse matrix n*2^16
Ed Meyer
eem2314 at gmail.com
Sun May 5 00:50:47 UTC 2013
- Previous message: [Pkg-octave-devel] Bug#706761: override: dynare:math/extra, octave-audio:math/extra, octave-benchmark:math/extra, octave-bim:math/extra, octave-communications:math/extra, octave-control:math/extra, octave-data-smoothing:math/extra, octave-dataframe:math/extra, octave-econometrics:math/extra, octave-epstk:math/extra, octave-financial:math/extra, octave-fixed:math/extra, octave-fpl:math/extra, octave-ga:math/extra, octave-general:math/extra, octave-geometry:math/extra, octave-gsl:math/extra, octave-image:math/extra, octave-io:math/extra, octave-java:math/extra, octave-linear-algebra:math/extra, octave-mapping:math/extra, octave-miscellaneous:math/extra, octave-missing-functions:math/extra, octave-msh:math/extra, octave-nan:math/extra, octave-nnet:math/extra, octave-nurbs:math/extra, octave-ocs:math/extra, octave-octcdf:math/extra, octave-octgpr:math/extra, octave-odepkg:math/extra, octave-openmpi-ext:math/extra, octave-optim:math/extra, octave-optiminterp:math/extra, octave-pkg-dev:devel/extra, octave-plot:math/extra, octave-quaternion:math/extra, octave-secs1d:math/extra, octave-secs2d:math/extra, octave-signal:math/extra, octave-sockets:math/extra, octave-specfun:math/extra, octave-splines:math/extra, octave-statistics:math/extra, octave-strings:math/extra, octave-struct:math/extra, octave-symbolic:math/extra, octave-tsa:math/extra, octave-vrml:math/extra, octave-zenity:math/extra, qtoctave:math/extra
- Next message: [Pkg-octave-devel] Bug#706376: Bug#706376: Bug#706376: Bug#706376: octave: sparse matrix n*2^16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
On Tue, Apr 30, 2013 at 6:37 AM, Jordi Gutiérrez Hermoso <jordigh at octave.org
> wrote:
> On 29 April 2013 17:51, Ed Meyer <eem2314 at gmail.com> wrote:
>
> > I'm not saying numel() is to blame or should be changed, only that I
> > see no reason to ever use numel when handling sparse matrices unless
> > you are converting it to full in which case the current behavior is
> > ok.
>
> Well, look at the current implementation of trace (), in which numel
> is a perfectly reasonable function to call. If you don't want to ever
> call numel () for sparse matrices, then you would need to rewrite this
> function to check for sparsity as well as any other function that
> calls numel ().
>
>
I think I see why numel() is getting called from trace(). isempty() is
called which
calls is_empty() which should be virtual. Were it to call the sparse
version
of is_empty() there would be no problem because it tests the row & column
dimensions instead of calling numel(). So shouldn't is_empty() be virtual?
--
Ed Meyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-octave-devel/attachments/20130504/c099bcce/attachment.html>
- Previous message: [Pkg-octave-devel] Bug#706761: override: dynare:math/extra, octave-audio:math/extra, octave-benchmark:math/extra, octave-bim:math/extra, octave-communications:math/extra, octave-control:math/extra, octave-data-smoothing:math/extra, octave-dataframe:math/extra, octave-econometrics:math/extra, octave-epstk:math/extra, octave-financial:math/extra, octave-fixed:math/extra, octave-fpl:math/extra, octave-ga:math/extra, octave-general:math/extra, octave-geometry:math/extra, octave-gsl:math/extra, octave-image:math/extra, octave-io:math/extra, octave-java:math/extra, octave-linear-algebra:math/extra, octave-mapping:math/extra, octave-miscellaneous:math/extra, octave-missing-functions:math/extra, octave-msh:math/extra, octave-nan:math/extra, octave-nnet:math/extra, octave-nurbs:math/extra, octave-ocs:math/extra, octave-octcdf:math/extra, octave-octgpr:math/extra, octave-odepkg:math/extra, octave-openmpi-ext:math/extra, octave-optim:math/extra, octave-optiminterp:math/extra, octave-pkg-dev:devel/extra, octave-plot:math/extra, octave-quaternion:math/extra, octave-secs1d:math/extra, octave-secs2d:math/extra, octave-signal:math/extra, octave-sockets:math/extra, octave-specfun:math/extra, octave-splines:math/extra, octave-statistics:math/extra, octave-strings:math/extra, octave-struct:math/extra, octave-symbolic:math/extra, octave-tsa:math/extra, octave-vrml:math/extra, octave-zenity:math/extra, qtoctave:math/extra
- Next message: [Pkg-octave-devel] Bug#706376: Bug#706376: Bug#706376: Bug#706376: octave: sparse matrix n*2^16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Pkg-octave-devel
mailing list