Different shifts on rows of matrices [message #2643] |
Fri, 05 August 1994 10:34 |
msreeve
Messages: 3 Registered: June 1994
|
Junior Member |
|
|
Does anyone have a quick way of performing a shift
on a matrix where each row or column is shifted by
different amounts? APL has the rotate operator
which allows precisely this.
Having used APL extensively I am continually
frustrated by IDL which seems like a crippled APL
with graphics and some nice math functions. For
example, why doesn't IDL have a "reduce" operator?
In APL, this places an operator between each pair
of elements of a vector, or along rows or columns
of matrices..., and then evaluates in APL's right-
to-left fashion. This is extraordinarily handy.
IDL has "total" for a "plus reduction", but I often
wish to do an "AND reduction" or something else.
APL's inner and outer products are also sorely missed,
as are the general catenation scheme -- it's very
clumsy to catenate matrices across different dimensions
in IDL.
I like IDL very much, in many ways. I just
wish RSI would include more of IDL's APL heritage in
their capabilities.
Mark Reeve
|
|
|