[uBlas] Fastest way to change sing of matrix

[email protected]
Newsgroups gmane.comp.lib.boost.ublas
Message-ID <CAHq7APFBL_YU5tHEFBhkYKhCQsLdkrv0A_MiJORUUS+sNB1kYQ@mail.gmail.com>
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
[email protected]
http://lists.boost.org/mailman/listinfo.cgi/ublas
Sent to: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.