
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