- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why does:
use ifport
:
z =
cmplx(x,y) ! x, y, z are all double 1-D arrays of the same length call sortqq(loc(real(z)), xend, srt$real8):
fail? I'm merely trying to sort z wrt its real part.
Thanks,
Gerry
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're sorting a temporary expression consisting of the values from the real part of Z, and not Z itself. Once the call returns, the temporary goes away.
I don't think you can do what you want with SORTQQ. Use QSORT instead and write your own comparison function.
I don't think you can do what you want with SORTQQ. Use QSORT instead and write your own comparison function.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gerry,
SORTQQ assumes all data are keys.
Look at using QSORT
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Gentlemen, now I get it.
Gerry

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page