summaryrefslogtreecommitdiffstats
path: root/vec_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'vec_base.h')
-rw-r--r--vec_base.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/vec_base.h b/vec_base.h
index 6fa5f4f..f45ccec 100644
--- a/vec_base.h
+++ b/vec_base.h
@@ -183,6 +183,18 @@ namespace vecmathlib {
}
template<typename real_t, int size>
+ inline realvec<real_t, size> cos(realvec<real_t, size> x)
+ {
+ return x.cos();
+ }
+
+ template<typename real_t, int size>
+ inline realvec<real_t, size> cosh(realvec<real_t, size> x)
+ {
+ return x.cosh();
+ }
+
+ template<typename real_t, int size>
inline realvec<real_t, size> exp(realvec<real_t, size> x)
{
return x.exp();
@@ -302,11 +314,35 @@ namespace vecmathlib {
}
template<typename real_t, int size>
+ inline realvec<real_t, size> sin(realvec<real_t, size> x)
+ {
+ return x.sin();
+ }
+
+ template<typename real_t, int size>
+ inline realvec<real_t, size> sinh(realvec<real_t, size> x)
+ {
+ return x.sinh();
+ }
+
+ template<typename real_t, int size>
inline realvec<real_t, size> sqrt(realvec<real_t, size> x)
{
return x.sqrt();
}
+ template<typename real_t, int size>
+ inline realvec<real_t, size> tan(realvec<real_t, size> x)
+ {
+ return x.tan();
+ }
+
+ template<typename real_t, int size>
+ inline realvec<real_t, size> tanh(realvec<real_t, size> x)
+ {
+ return x.tanh();
+ }
+
template<typename real_t, int size>
OpenPOWER on IntegriCloud