[bug #45219] Incorrect behavior with broadcasting and mixed real/complex matrices

chad <[email protected]>
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #11, bug #45219 (group octave):

Test Environment: Octave (version:11.0.92)
Obviously, it was resolved much earlier.
Test Results:

The original test case from 2015 was run:


t1 = randn(6,3) + 1j * randn(6,3);
t2 = randn(6,1);
s1 = sparse(t1);
s2 = sparse(t2);

% Test 1: Dense matrix addition (original working case - for reference)
a = t1 + t2
% Result: Success - 6x3 complex dense matrix

% Test 2: Dense matrix bsxfun (original working case - for reference)
b = bsxfun(@plus, t1, t2)
% Result: Success - 6x3 complex dense matrix

% Test 3: Sparse matrix addition (original failing case)
c = s1 + s2
% Result: SUCCESS - Returns 6x3 sparse complex matrix (100% filled)
% No "nonconformant arguments" error as originally reported

% Test 4: Sparse matrix bsxfun (original failing case)
d = bsxfun(@plus, s1, s2)
% Result: SUCCESS - Returns 6x3 sparse complex matrix (100% filled)
% No "concatenation operator not implemented" error as originally reported

Verification:

All operations complete without errors

The results from sparse operations (c and d) correctly match their dense
counterparts (a and b)

Broadcasting works correctly with mixed real/complex sparse matrices

Both the + operator and bsxfun produce identical, correct results

Conclusion:

This bug can be closed as FIXED.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaY8ecwAKCRCqLAuaBUf3
TuuZAQDLjWm3SPaerdY2hLv/UpsFKkvBeYNxPNAwcSW5oqOwkQD+OzGIrouErz1a
o7BewkLQEMdt/tXsHAn7tWQGmvQqawE=
=OH4v
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.