Blitz logo

Blitz Devel :

From: Jon Reiter (jr_at_[hidden])
Date: 1998-07-30 10:55:05


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_at_[hidden], with
"subscribe blitz-dev" or "unsubscribe blitz-dev" in the body of the message
* Blitz++ web page: http://oonumerics.org/blitz/