I would like to copy the data of an Array<T,N-1> "source" to an existing
Array<T,N> "dest" at a fixed position along dimension D.
Array<T,N> "dest" has sufficient space and matches the shape of Array<T,N-1>
"source", except for dimension D, along which its extent may vary.
Here is something I tried:
//code to setup lowerBounds and upperBounds so the width along D is 1
blitz::RectDomain<N> domain(lowerBounds, upperBounds);
dest(domain) = source;
This does not compile and I don't see another way to copy the data w/o
knowing in advance the number of dimensions.
Constraints: It is desirable to have this generically (as a template) coded
as we need to do this with a varying N (N >= 2)
Thoughts? Thanks in advance, André
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712