Mercurial > octave
view test/mex/mexnumtst.tst @ 31246:43a6be589387
doc: New documentation for memoization techniques (bug #60860)
vectorize.texi: New section on memoization
octave.texi: List new section
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 29 Sep 2022 20:31:52 -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)