I think that a swap routine would be very useful, especially in
connection with linear algebra code.
For example swap(A(1,Range::all()),A(2,Range::all())
for swapping to rows.
I tried to develop one from BZ_DEFINE_FUNCTION2_RET but it does nothing.
I then discovered that BZ_DEFINE_FUNCTION2_RET passes arguments by
value, which is I think very good for functions but doesn't solve this
kind of problem.
Bye
Fulvio
--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/blitz/lists.html
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:11 EST