Hi Ingvarr,
Section 2.9 of the Blitz documentation explains in detail
how to create your own customized Array storage orders, so
that you can do things like modify the numbering scheme.
It is meant to be user-modifiable. The element numbering
scheme for TinyVector and TinyMatrix is not modifiable in
this way. You could add a base index to these objects, but
that would merely raise the cost of indexing because you
would have to subtract the base index value from the requested
index in order to retrieve an element. I don't see the
advantage of doing this for such small data types.
Regards, Julian C.
Dr. Julian C. Cummings
Staff Scientist, Caltech/CACR
(626) 395-2543
cummings@cacr.caltech.edu
-----Original Message-----
From: owner-blitz-dev@oonumerics.org
[mailto:owner-blitz-dev@oonumerics.org]On Behalf Of Ingvarr Zhmakin
Sent: Wednesday, September 26, 2001 8:21 AM
To: blitz-dev@oonumerics.org
Subject: BZDEV: Some features
Good morning everybody.
I need a couple of very simple features:
1) Storage for arrays with rows-first order, but numbering from 1.
2) The variant of TinyVector and TinyMatrix with numbering from 1.
Of course I can make them myself (really I have done it already) but
maybe they can be useful for somebody else?
Ingvarr.
--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/blitz/lists.html
--------------------- 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:12 EST