[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42691] vectorize(<anonymous function>) fails
From: |
Kai Torben Ohlhus |
Subject: |
[Octave-bug-tracker] [bug #42691] vectorize(<anonymous function>) fails while <inline> works. |
Date: |
Wed, 4 Aug 2021 01:50:15 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36 |
Update of bug #42691 (project octave):
Status: Confirmed => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #4:
Thanks for checking.
Somehow this bug must have been fixed 🙂 For Octave 6.3.0 on openSUSE
15.3:
>> f = inline ('x*x + y*y'); char (f), char (vectorize (f))
ans = x*x + y*y
ans = x.*x + y.*y
>> g = @(x,y) x^2 + y^2, vectorize (g)
g =
@(x, y) x ^ 2 + y ^ 2
warning: vectorize is unreliable; its use is strongly discouraged
ans =
@(x, y) x .^ 2 + y .^ 2
Similar results for Matlab R2021a.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?42691>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/