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

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

[Octave-bug-tracker] [bug #41441] Broadcasting does not behave properly


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #41441] Broadcasting does not behave properly on sparse matrices
Date: Sat, 3 Jul 2021 22:19:15 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Follow-up Comment #6, bug #41441 (project octave):

just stumbled on this and confirming that this bug still exists in Octave
6.2.0:


>> a  = [1 2 3];

>> a .* a'
ans =

   1   2   3
   2   4   6
   3   6   9

>> b = sparse(a)
b =

Compressed Column Sparse (rows = 1, cols = 3, nnz = 3 [100%])

  (1, 1) -> 1
  (1, 2) -> 2
  (1, 3) -> 3

>> b .* b'
error: product: nonconformant arguments (op1 is 1x3, op2 is 3x1)


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?41441>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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