Mex Function for Mahalanobis Function


In my last post I showed how to write mex functions with the armadillo library to get both fast and clean mex functions. Armadillo is a library for C++ that has a syntax similar to matlab.

Here I give an example of a mex function using armadillo. It computes the Mahalanobis distance and is based on the template from the last post.



Enjoy. Please leave a comment below for suggestions and questions.

No Response to "Mex Function for Mahalanobis Function"

  Subscribe to replies to this post

 
This conversation is missing your voice. Your feedback is appreciated.
Post a Comment


You can use some HTML tags, such as <b>, <i>, <a>

If you see a message that says "your request could not be processed" press preview first and then post.
 
You can follow the discussion of this post by subscribing.


 
You are free to include information from this article on your own site if you provide a backlink. You can use the following markup:
<a href="http://www.myoutsourcedbrain.com/2009/08/mex-function-for-mahalanobis-function.html">Mex Function for Mahalanobis Function</a>