G
Gary Wessle
Hi
I have 2 valarray<double> a and b, how can I make a = 1/b, that is
each element of a is 1 / each element of b?
I have been reading around and could not understand how it is done.
let a and b have the same size.
transform(a.begin(), a.end(), &b[0], operation)
or
b = a /=(1);
not sure.
thanks
I have 2 valarray<double> a and b, how can I make a = 1/b, that is
each element of a is 1 / each element of b?
I have been reading around and could not understand how it is done.
let a and b have the same size.
transform(a.begin(), a.end(), &b[0], operation)
or
b = a /=(1);
not sure.
thanks