[bug #68121] convert isequal to built-in function for performance

Andy Potvin <[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 #4, bug #68121 (group octave):

Hi again:

A fellow M-coder; nice.

I'm only using the two input version of isequal/isequaln.  Give me a bit of
time to do a couple experiments with my code.  I generally use those functions
instead of all(a(:)==b(:)) because, in MATLAB, it's ALWAYS faster.  My guess
is that switching to == will increase the speed in Octave but slow things down
significantly in MATLAB.  Re: my code needs to run in both.

- AP

P.S. It's also on my wish list that GNU/MathWorks add a function:
idx = verifyNsatisfy(operator,firstFlag,N,V1,V2,<varargin>)
%Inputs
% operator - Perhaps '==', '~=', '<', '>', etc. or a function handle.
% firstFlag - If true (default), return first N to satisfy; if false return
last N to satisfy.
% N - Number of indicies to return.
% varargin - Might as well allow possibility of V3, V4, etc.
%Outputs
% idx  - First (or last if firstFlag=false) N indicies satisfying
op(V1,V2,<varargin>); numel(idx) could be less than N if fewer than N
"elements" found.  Empty if no elements satisfy.




    _______________________________________________________

Reply to this item at:

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

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

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaasVtAAKCRCqLAuaBUf3
Thf0AP47D4p/56kdW1kSuFfvg9wrIqUFRIkEEdzjYUPxFfyaCAEA93Uaf0fKBX64
J4x4C7uEGToYTGNd48mNhtny3sLu5AA=
=+hbO
-----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.