Matrix operations (LQR controller)

I need operate with matrices and vectors. Because I want do a LQR controller.

I found a library but it is not working:
http://www.arduino.cc/playground/Code/MatrixMath

Somebody knows how can I operate with matrix or if there are some library for that.

Thanks

but it is not working

That is a very vague error message,

Can you post a more explicit error and post your code / sample code that shows the problem?

Thanks for your answer.

The problem is the library, It's a copy from this directory:

http://www.arduino.cc/playground/Code/MatrixMath

The program:

#include <MatrixMath.h>

void setup() {
// put your setup code here, to run once:

}

void loop() {
// put your main code here, to run repeatedly:

}

And the error:

C:\Users\Invitat\Documents\Arduino\libraries\MatrixMath/MatrixMath.h:11:22: fatal error: WProgram.h: No such file or directory

#include "WProgram.h"

For these I ask if somebody knows how i can operate, like sums and multiplication with matrices.

Thnaks

Edgard

edgardM:
#include "WProgram.h"

For these I ask if somebody knows how i can operate, like sums and multiplication with matrices.

If you are using such old libraries from ancient times, it may work to replace #include "WProgram.h" in the library code with:

 #include "Arduino.h"

But if you are not so lucky you might have to do other changes to the code as well.

@edgardM: You can't be using the code at Arduino Playground - MatrixMath because your error message indicates the problem is on line 11 but that line is blank. Also, the code on that page already has a fix for the Arduino.h/WProgram.h problem so you should not have seen that error message unless you were running a version of the Arduino IDE older than V1.0.0

Pete