source:
proiecte/pmake3d/make3d_original/Make3dSingleImageStanford_version0.1/third_party/lightspeed/sameobject.c
@
177
Last change on this file since 177 was 37, checked in by , 15 years ago | |
---|---|
File size: 426 bytes |
Rev | Line | |
---|---|---|
[37] | 1 | /* mex sameobject.c |
2 | */ | |
3 | /* Written by Tom Minka | |
4 | * (c) Microsoft Corporation. All rights reserved. | |
5 | */ | |
6 | ||
7 | #include "mex.h" | |
8 | ||
9 | void mexFunction(int nlhs, mxArray *plhs[], | |
10 | int nrhs, const mxArray *prhs[]) | |
11 | { | |
12 | double *p; | |
13 | if(nrhs != 2) { | |
14 | mexErrMsgTxt("usage: sameobject(a,b)"); | |
15 | } | |
16 | plhs[0] = mxCreateDoubleMatrix(1,1,mxREAL); | |
17 | p = mxGetPr(plhs[0]); | |
18 | *p = (mxGetData(prhs[0]) == mxGetData(prhs[1])); | |
19 | } |
Note: See TracBrowser
for help on using the repository browser.