-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathau_mex.m
31 lines (30 loc) · 1.06 KB
/
au_mex.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
% AU_MEX C++ helper classes for MEX file writers.
%
% Help for <a href=https://awful.codeplex.com/wikipage?title=au_mex.h>au_mex.h</a>
%
%
% -- mlx_inputs --
% // Manage the "rhs" values on a mexFunction
% mlx_inputs ins(nrhs, prhs);
% ins[0] .. // range-checked access
%
% -- mlx_outputs --
% mlx_outputs outs(nlhs, plhs);
% outs[0] = // range-checked assignment from mlx_array<>
%
% -- mlx_array<T> --
% mlx_array<double> A(ins[0]); // Assign from inputs[0]
% mlx_array<double> A(prhs[0]); // Assign from prhs[0]
% mlx_assert(A.rows == 3); // Access rows
% mlx_assert(A.numel() == 3); // Access total number of elements
% mlx_assert(A.size[2] == 3); // Access 3rd dimension
% double const* p = A.data;
% A[0] = 1.0; // 0-based linear access
% A.put1(1) = 1.0; // 1-based put
%
% -- mlx_make_array<T> --
% Constructor for mlx_array of the form:
% mlx_make_array<mlx_uint8> img(480, 640);
% mlx_make_array<mlx_uint8> img(mlx_dims(...));
%
% Autogenerated by ../doc/make-matlabhelp.ps1 from ../doc/au_mex_reference.txt