![]() |
Blitz Support : |
From: Olivier Saut (novocaine_at_[hidden])
Date: 2005-02-15 06:17:42
John Bray wrote:
> As someone with a long background in Fortan 90 struggling to see how the
> same features might be implemented, Blitz looks very useful, but I'm
> confused how I could introduce Arrays into my own classes for dynamic
> allocation.
> ...
You can do it with
#include <blitz/array.h>
using namespace blitz;
class Fred {
Array<float,3> a1; // do not define the size at the declaration
public:
void allocate(int x,int y, int z);
};
void
Fred::allocate(int x, int y, int z) {
a1.resize(x,y,z);
}
Hope this helps,
- Olivier