octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About diagonal matrices


From: Daniel J Sebald
Subject: Re: About diagonal matrices
Date: Fri, 20 Feb 2009 22:45:47 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020

Jaroslav Hajek wrote:

I think that what Octave does now for sparse * scalar is certainly
better than what Matlab does; I'd keep it that way. Otherwise, when
you do scalar * sparse, and just by coincidence scalar happens to be
Inf or NaN, you fill up the memory; bang, you're dead (or your
computation is).

A conversation about this came up at the "OctaConf" a few years back, one of the ideas being that a 
sparse matrix not necessarily have 0 as the "sparse default value".  That is, the "sparse 
default value" could be any number, 0, NaN, Inf, 2.33, etc.

I'll say more about this in a follow up to David's email...

Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]