Boost logo

Ublas :

Subject: [ublas] [uBlas] Fastest way to change sing of matrix
From: dariomt_at_[hidden]
Date: 2013-04-15 12:36:00


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