Mercurial > octave
view test/mex/mexnumtst.tst @ 31090:1779a64b2510
maint: Merge stable to default
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Fri, 10 Jun 2022 18:57:17 -0400 |
parents | 1188addabaad |
children |
line wrap: on
line source
%!test %! s = rand (3, 4, "single"); %! sc = s + i * rand (3, 4, "single"); %! d = rand (3, 4, "double"); %! dc = d + i * rand (3, 4, "double"); %! %! [sx, scx, dx, dcx] = mexnumtst (s, sc, d, dc); %! assert (s, sx) %! assert (sc, scx) %! assert (d, dx) %! assert (dc, dcx)