there is unfortunately only little information about A (e.g. is A big? is it dense? sparse? is it a matrix, bounded_matrix or c_matrixr?). As i assume A to be a small matrix:


fixes everything.

On 15.04.2013 18:36, dariomt@gmail.com wrote:
Hi list,

I need to change the sign of each element in a (very large) matrix.

I know a way that is very slow
A = -A;

What is the fastest way to do this?

Thanks in Advance

ublas mailing list
Sent to: Oswin.Krause@ruhr-uni-bochum.de