octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #47175] “dimension too large” error when broad


From: Lachlan Andrew
Subject: [Octave-bug-tracker] [bug #47175] “dimension too large” error when broadcasting to sparse matrix in octave
Date: Sat, 20 Feb 2016 03:38:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #3, bug #47175 (project octave):

Repmat already returns sparse output for sparse input.

A big weakness with the bsxfun patch is that it builds the sparse matrix
column at a time.  This will probably involve copying the entire matrix for
each row processed.  That can be avoided if we know the number of non-zero
elements in the final matrix.

Can someone suggest a good heuristic for estimating the number of non-zero
elements in the solution?  Ideally, I don't want too many special cases for
different values of
  (operator, operand1-shape/sparsity, operand2-shape/sparsity).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47175>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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