![]() |
Blitz Support : |
From: Simon Perreault (perrea02_at_[hidden])
Date: 2003-07-16 10:17:16
Hi,
I am having trouble finding how to write a function that takes blitz arrays as
arguments. This is the current function prototype:
template<class T>
Array<T,2> function(const Array<T,2>& x, const Array<T,2>& y);
This works fine for this kind of statement:
C = function(A, B);
But then suppose I want to do something like this:
D = function(A+B, C);
Then the function receives a _bz_ArrayExpr<...> for the first argument. I
think I need to wrap my algorithm into some kind of expression class, am I
right? How should I go about it? Any reference I should read?
Thanks
-- Simon Perreault <perrea02_at_[hidden]> http://nomis80.org