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:21:37 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #47175 (project octave):

                  Status:                    None => Patch Submitted        
             Assigned to:                    None => lachlan                
                 Release:                   3.8.2 => dev                    

    _______________________________________________________

Follow-up Comment #2:

The attached patch should allow bsxfun to work.  It is a two-line patch
relative to the patch supplied for bug #45219 and bug #40089, but that patch
hasn't yet been applied.

We don't *always* want to return a sparse matrix from bsxfun for a mix of
sparse and full.  For example, @plus and @minus should generally return a full
matrix.  The attached patch skips one level of optimization for sparse
matrices (maybe_optimized_builtin).  The alternative would be to enhance the
first stage of optimization to consider which operations should convert full
to sparse and which should convert sparse to full.

Dan, could you put this patch through its paces, like timing it and checking
it with 64 bit indexing?  I only tried it on a cut-down example that fits in
32 bits.

I'll look into repmat next.

Note: For anyone trying to reproduce this, replace "rep" by "broad" in the
definition of toobig.

(file #36404)
    _______________________________________________________

Additional Item Attachment:

File name: bug_47175_bsxfun.cset          Size:2 KB


    _______________________________________________________

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]