This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Quadratic Form calc

Tags: None
(comma "," separated)
poebler
Registered Member
Posts
4
Karma
0

Quadratic Form calc

Thu Sep 29, 2011 8:45 am
Hey,

what is the best way of calculating:

MatriXd A, B;

A * B * A.transpose();

Is there something faster?

thanks a lot
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Quadratic Form calc

Thu Sep 29, 2011 8:48 am
unless B is selfadjoint in which case you can compute only half of the second product using a triangularView on the result
poebler
Registered Member
Posts
4
Karma
0

Re: Quadratic Form calc

Thu Sep 29, 2011 10:43 am
thank you!


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]