a 2 x 2 matrix with some values I can simply do this:
matrix << 1 << 2 << endr
<< 0 << 1 << endr;
Accessing an element is simply:
matrix(i, j)
And operations can be performed as:
X = A * B
X = A + B
The functionality seems to include everything I needed so far:
det(X)
inv(X)
In the end there is a speed comparison in which armadillo is always the fastest.
Nice! Have you tried OpenCV's matrix implementation?
ReplyDeleteYes I have, it is a great matrix library, too that I currently use. I use armadillo when I don't want the computer vision overhead.
ReplyDelete