allendaicool / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

predefined arithmetic should include exp, log, and pow #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be nice to have predfined unary operators for
exp(x)
log(x)
x^y

envisioned usage below:
thrust::exp<ValueType> opExp;
thrust::log<ValueType> opLog;
thrust::log<ValueType,LogBase> opLog;
thrust::pow<ValueType,exponent> opPow;

Original issue reported on code.google.com by etep.nos...@gmail.com on 28 Apr 2010 at 6:28

GoogleCodeExporter commented 9 years ago

Original comment by wnbell on 23 Jul 2010 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by jaredhoberock on 7 Oct 2010 at 4:16