Has anyone worked at all on identity arrays? At the moment it looks
like the only way to get an identity array is to do something like:
Array<float,2> A;
A = 1,0
0,1;
Which is okay for small arrays but is a huge mess for larger ones. I've
already found myself writing functions to do this since a lot of
graphics algorithims work with 4x4 matricies (okay, the code isn't too
bad for 4x4 but...).
Any thoughts? I was just going to implement it as a member fuctions of
the array class but it seems like someone has probably been here before
since identity matricies are more than somewhat common.
---jon --------------------- blitz-dev list -------------------------------- * To subscribe/unsubscribe: mail to majordomo@oonumerics.org, with "subscribe blitz-dev" or "unsubscribe blitz-dev" in the body of the message * Blitz++ web page: http://oonumerics.org/blitz/
This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:06 EST