Re: [Boost-users] multi_array : using double** from 3rd party lib

-----Original Message----- From: "alfC" [alfredo.correa@gmail.com] Date: 24/02/2010 08:24 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] multi_array : using double** from 3rd party lib
and I wish to pass the "subarray" as a double** argument and call their function .It's not possible, is it?
you have to create the array of pointers:
double trace(double** arr){
double ret=0;
for(unsigned i=0; i!=4; ++i){
ret+=arr[i][i];
}
return ret;
}
int main(){
boost::multi_array I am actually able to override their function that takes in a double** data. Can it work then? If you can "override" (sic) the function that takes the data, can't
you just replace by some multi_array
participants (1)
-
Hicham Mouline