{"id":37,"date":"2011-05-24T14:31:42","date_gmt":"2011-05-24T19:31:42","guid":{"rendered":"http:\/\/www.matthewcroberts.com\/?page_id=37"},"modified":"2011-05-24T14:43:42","modified_gmt":"2011-05-24T19:43:42","slug":"fmex-examples","status":"publish","type":"page","link":"http:\/\/www.matthewcroberts.com\/?page_id=37","title":{"rendered":"FMEX Examples"},"content":{"rendered":"<p><strong><span style=\"text-decoration: underline;\">Samples\/Examples:<\/span><\/strong><\/p>\n<p><a title=\"vvmult.f\" href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult.f.txt\" target=\"_blank\">vvmult.f<\/a> is a simple, sample MEX file that performs vector multiplication. There are also versions that demonstrate the use of ALLOCATABLE (<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult.f90.txt\" target=\"_blank\">vvmult.f90<\/a>) and POINTER (<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult_ptr.f90.txt\" target=\"_blank\">vvmult_ptr.f90<\/a>) in building gateway functions (See\u00a0<a title=\"Q4: Array Bounds and %val()\" href=\"http:\/\/www.matthewcroberts.com\/?page_id=28\" target=\"_blank\">here<\/a> for more info). There are also versions that use IMSL (<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult_imsl.f90.txt\" target=\"_blank\">vvmult_imsl.f90<\/a>) MKL (<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult_mkl.f90.txt\" target=\"_blank\">vvmult_mkl.f90<\/a>) and CXML (<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/vvmult_cxml.f90.txt\" target=\"_blank\">vvmult_cxml.f90<\/a>) (See\u00a0<a title=\"Q8: External Libraries\" href=\"http:\/\/www.matthewcroberts.com\/?page_id=33\" target=\"_blank\">here<\/a> for more info)<\/p>\n<p><a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/TIMES_IMSL.f90.txt\">times_imsl.f90.txt<\/a> is an simple example of using the IMSL numerical libraries in an F90 MEX file. (See\u00a0<a title=\"Q8: External Libraries\" href=\"http:\/\/www.matthewcroberts.com\/?page_id=33\">FAQ 8<\/a> for info on using IMSL libraries, see\u00a0<a title=\"Q3: Why won\u2019t MEX work?\" href=\"http:\/\/www.matthewcroberts.com\/?page_id=27\">FAQ 3<\/a> for information on using F90 MEX files.)<\/p>\n<p><a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/matmult.f.txt\">matmult.f.txt<\/a> is a simple Fortran 77 MEX file that demonstrates the writing of a MEX file using inputs with unknown dimensions.<\/p>\n<p><a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/times.f90.txt\">TIMES.F90.TXT<\/a> is a simple example of an F90 MEX file that uses ALLOCATABLE arrays.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">Useful Code:<\/span><\/strong><\/p>\n<p><a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/ARMAfilter.f.txt\">ARMAFILTER.F<\/a> is a Fortran 77 MEX file that implements an ARMA(P,Q) filter for Matlab. There is also a\u00a0<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/ARMAfilter.f90.txt\">Fortran90 version<\/a>, and an\u00a0<a href=\"http:\/\/www.matthewcroberts.com\/wp-content\/uploads\/2011\/05\/ARMAfilter.m.txt\">m-file version<\/a> to accompany it.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Samples\/Examples: vvmult.f is a simple, sample MEX file that performs vector multiplication. There are also versions that demonstrate the use of ALLOCATABLE (vvmult.f90) and POINTER (vvmult_ptr.f90) in building gateway functions (See\u00a0here for more info). There are also versions that use IMSL (vvmult_imsl.f90) MKL (vvmult_mkl.f90) and CXML (vvmult_cxml.f90) (See\u00a0here for more info) times_imsl.f90.txt is an simple [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":24,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-37","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/pages\/37","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":0,"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/pages\/37\/revisions"}],"up":[{"embeddable":true,"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=\/wp\/v2\/pages\/24"}],"wp:attachment":[{"href":"http:\/\/www.matthewcroberts.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}