Mercurial > hg > octave-lyh
diff examples/mypow2.c @ 9932:6cb30a539481
untabify files in examples directory
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 07 Dec 2009 14:53:20 -0500 |
parents | 4295d634797d |
children | be41c30bcb44 |
line wrap: on
line diff
--- a/examples/mypow2.c +++ b/examples/mypow2.c @@ -2,7 +2,7 @@ void mexFunction (int nlhs, mxArray* plhs[], int nrhs, - const mxArray* prhs[]) + const mxArray* prhs[]) { mwIndex i; mwSize n; @@ -26,14 +26,14 @@ vio = mxGetPi (plhs[0]); for (i = 0; i < n; i++) - { - vro [i] = vri [i] * vri [i] - vii [i] * vii [i]; - vio [i] = 2 * vri [i] * vii [i]; - } + { + vro [i] = vri [i] * vri [i] - vii [i] * vii [i]; + vio [i] = 2 * vri [i] * vii [i]; + } } else { for (i = 0; i < n; i++) - vro [i] = vri [i] * vri [i]; + vro [i] = vri [i] * vri [i]; } }