M
marcomoeller
Hi,
I whant to write an function (ore overloading the class) which is able
to trace out an row of the Array. So the function becomes an array of
Dim n and returns one of Dim n-1.
something like:
template <class T, class B>
boost::multi_array<T, B - 1> * TraceOut(boost::multi_array<T, B> a,
int i){
//Summerize the values of a into a new array without to consider
different values in the i-th Row
}
I know that B-1 is not possible.. do you have any better idea?
THX
Marco
I whant to write an function (ore overloading the class) which is able
to trace out an row of the Array. So the function becomes an array of
Dim n and returns one of Dim n-1.
something like:
template <class T, class B>
boost::multi_array<T, B - 1> * TraceOut(boost::multi_array<T, B> a,
int i){
//Summerize the values of a into a new array without to consider
different values in the i-th Row
}
I know that B-1 is not possible.. do you have any better idea?
THX
Marco