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

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

[Octave-bug-tracker] [bug #60859] sparse matrix problem with float


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #60859] sparse matrix problem with float
Date: Thu, 1 Jul 2021 15:35:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

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

Operations like addition with mixed double/single arguments do produce single
results, but indexed assignment of single to double leaves the result as
double and doesn't generate a warning.  So the behavior is consistent with
what Octave and Matlab already do for full matrices.  Indexed assignment of
{u,}int{8,16,32,64} values to single and double arrays is also allowed without
changing the type of the LHS, and the same is true for all mixed integer
assignments.

I think Matlab also allows assignment of integers to sparse arrays but I
didn't add those operations in my changeset.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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