OONumerics User :

From: Drew McCormack (da.mccormack_at_[hidden])
Date: 2005-03-09 06:46:20


I am working on a quantum mechanics package that should be able to work
with arbitrary dimensionality. I need a tensor class, but it doesn't
have to be very fast. It does need to be flexible. I want to be able to
choose the rank of the tensor at run time. It seems like most solutions
out there (blitz++, multiarray from boost, pooma etc) require the rank
to be known at compile time.

The reason speed is not such an issue is that the tensor is really just
a storage container for me. I need to be able to extract parts of it,
just by copying data, perform some linear algebra on the extracted
portion, and then put it back in the tensor. I don't generally need to
work on individual elements of the tensor; I just need to extract
chunks of data, process them, and put them back in.

I have been thinking about using valarray, slice and gslice to do
something like this myself, but I thought I would see if there was
already something out there that fits my needs.

So, does anyone know of a nice, slow, but dynamic tensor class?

Regards,
Drew

========================================
  Dr. Drew McCormack (Kmr. R153)
  Afd. Theoretische Chemie
  Faculteit Exacte Wetenschappen
  Vrije Universiteit Amsterdam
  De Boelelaan 1083
  1081 HV Amsterdam
  The Netherlands

  Email da.mccormack_at_[hidden]
  Web www.maniacalextent.com

  Telephone +31 20 5987623
  Mobile +31 6 48321307
  Fax +31 20 5987629