C++ linear algebra library -> armadillo

armadillo  -> http://arma.sourceforge.net/






Armadillo expression comparing matlab

~~~~~~~~~~~~~~~~~~~~~
*M :
>> A=[5:9]
A =
     5     6     7     8     9

*A :
 linspace(5, 9, 9-5+1)
5.0 6.0 7.0 8.0 9.0

 linspace(5, 9, 9-5+1)
5 6 7 8 9
~~~~~~~~~~~~~~~~~~~~~
*M
A=[1 2 3; 4 5 6];
>> sum(a,1)

ans =

     5     7     9

>> sum(a,2)

ans =

     6
    15

*A
sum(a, 0)
5 7 9
sum(a,1)
6
15









Comments

  1. Anonymous11/4/14 00:52

    Armadillo now included as part of Ceemple, a rapid JIT based C++ technical coputing environment. Available (free) from http://www.ceemple.com.

    ReplyDelete

Post a Comment

Popular posts from this blog

OpenCV Stitching example (Stitcher class, Panorama)

(OpenCV Study) Background subtractor MOG, MOG2, GMG example source code (BackgroundSubtractorMOG, BackgroundSubtractorMOG2, BackgroundSubtractorGMG)

Example source code of extract HOG feature from images, save descriptor values to xml file, using opencv (using HOGDescriptor )

Real-time N camera stitching Class.

8 point algorithm (Matlab source code) / The method to get the Fundamental Matrix and the Essential matrix

Optical Flow sample source code using OpenCV

Video Stabilization example source code, (using cvFindHomography, cvWarpPerspective functions in openCV)

(OpenCV Study) calcOpticalFlowFarneback example source code ( dense optical flow )

yuv422(YUYV) to RGB and RGB to yuv422(YUYV), (Using OpenCV and TBB)

OpenCV Drawing Example, (line, circle, rectangle, ellipse, polyline, fillConvexPoly, putText, drawContours)