diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-09-03 17:16:28 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-09-03 17:16:28 +0000 |
commit | 59dc1da5bf6b5c57205ee8d695e0f6e852ca74ae (patch) | |
tree | 6e1b3bba60675b5544cc59e29f402aa247298257 /test/adjoint.cpp | |
parent | 622f2d5eae03cdf1c268e64b40f38bf20bc13c86 (diff) |
Add a Select expression in the Array module which mimics a coeff-wise ?: operator.
Example:
mat = (mat.cwise().abs().cwise() < Ones()).select(0,mat);
replaces all small values by 0. (the scalar version is "s = abs(s)<1 ? 0 : s")
Diffstat (limited to 'test/adjoint.cpp')
0 files changed, 0 insertions, 0 deletions