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

-1.#IND problem in matrix multiplication

Tags: None
(comma "," separated)
Padarn
Registered Member
Posts
1
Karma
0
OS
Hi,

I am having a problem multiplying a large matrix (about 1500x1500) with a vector.

The code I am trying to run is (CONDITION is the 1500x1500 matrix, and RHS is a 1500x1 vector):

Code: Select all
cout << "CONDITIONED * RHS" <<endl << RHS.row(0)*CONDITION(0,0) << endl;
cout << "RHS BLOCK CONDITIONED" <<endl << CONDITION*RHS << endl;


This returns -1 for the first computation (this is expected) but returns a vector full of -1.#IND for the second cout.

Both CONDITIONED and RHS are MatrixXd objects.

Any help is much appreciated.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
your matrix or vector probably already contain some -1.#IND


Bookmarks



Who is online

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