Using the armadillo library in the arduino.

Is it possible to use armadillo library in the Arduino IDE to handle matrix computations? I cannot figure out how to add this library to Arduino. Would you please help me through this?

That's OK, don't bother explaining what "armadillo library" does or posting a link to it. We'll just read your mind.

mgh149: Is it possible to use armadillo library in the Arduino IDE to handle matrix computations? I cannot figure out how to add this library to Arduino. Would you please help me through this?

gfvalvo: That's OK, don't bother explaining what "armadillo library" does or posting a link to it. We'll just read your mind.

Sorry, that was my first time, I promise I would do better next times, armadillo is a library for linear algebra in C++, and here is the link to its documentation: armadillo

mgh149: Sorry, that was my first time

No, that was your second time - the first time was posted in the section that says "please do not post your questions here"

AWOL: No, that was your second time - the first time was posted in the section that says "please do not post your questions here"

Yeah. Ok, you got me, I was asking the same question then I noticed the alarm.

I was a bit curious, so I followed your link. I don't see where Armadillo uses a library. And I don't see Arduino listed as one of the three operating systems it is designed for.

Can you explain more of your thoughts on Armadillo and Arduino? Looks like it would be a real memory hog, not just a memory Armadillo.

Paul

Paul_KD7HB: I was a bit curious, so I followed your link. I don't see where Armadillo uses a library. And I don't see Arduino listed as one of the three operating systems it is designed for.

Can you explain more of your thoughts on Armadillo and Arduino? Looks like it would be a real memory hog, not just a memory Armadillo.

Paul

The program that I'm going to implement in Arduino is full of matrix operations, so I think armadillo is a fast library to deal with those computations.

mgh149: The program that I'm going to implement in Arduino is full of matrix operations, so I think armadillo is a fast library to deal with those computations.

You have not yet provided a link to whatever library you are referring to. Please share it.

Paul

mgh149: Sorry, that was my first time, I promise I would do better next times, armadillo is a library for linear algebra in C++, and here is the link to its documentation: armadillo

[/quote]

Paul_KD7HB: You have not yet provided a link to whatever library you are referring to. Please share it.

Paul

I did that in previous posts, here is the link for downloading(armadillo itself is the library that uses some other libraries inside) armadillo-download

The folder structure of the library is indeed not compatible with the Arduino IDE but it's not too difficult to make it compatible. Just follow the Arduino Library Specification: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification After doing that, I could install the library and compile it for the Zero but I didn't do any further testing. You will get an error about missing files if you try to compile for one of the AVR boards (Uno, Mega, etc.). I believe this is due to that toolchain not having the Standard Template Library (STL). There is a 3rd party STL Arduino library you can install: https://github.com/mike-matera/ArduinoSTL but I didn't bother to try it.

pert: The folder structure of the library is indeed not compatible with the Arduino IDE but it's not too difficult to make it compatible. Just follow the Arduino Library Specification: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification After doing that, I could install the library and compile it for the Zero but I didn't do any further testing. You will get an error about missing files if you try to compile for one of the AVR boards (Uno, Mega, etc.). I believe this is due to that toolchain not having the Standard Template Library (STL). There is a 3rd party STL Arduino library you can install: https://github.com/mike-matera/ArduinoSTL but I didn't bother to try it.

Thank you so much, I will check the links out.

pert: The folder structure of the library is indeed not compatible with the Arduino IDE but it's not too difficult to make it compatible. Just follow the Arduino Library Specification: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification After doing that, I could install the library and compile it for the Zero but I didn't do any further testing. You will get an error about missing files if you try to compile for one of the AVR boards (Uno, Mega, etc.). I believe this is due to that toolchain not having the Standard Template Library (STL). There is a 3rd party STL Arduino library you can install: https://github.com/mike-matera/ArduinoSTL but I didn't bother to try it.

I did that, and including STL library doesn't help, and how exactly should I use STL to solve the problem?