mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
bring std-operators to namespace
This commit is contained in:
parent
86fdb04687
commit
59bc017c40
@ -219,6 +219,9 @@ namespace netgen
|
|||||||
inline SIMD<double> operator*= (SIMD<double> & a, SIMD<double> b) { return a.Data()*=b.Data(); }
|
inline SIMD<double> operator*= (SIMD<double> & a, SIMD<double> b) { return a.Data()*=b.Data(); }
|
||||||
inline SIMD<double> operator/= (SIMD<double> & a, SIMD<double> b) { return a.Data()/=b.Data(); }
|
inline SIMD<double> operator/= (SIMD<double> & a, SIMD<double> b) { return a.Data()/=b.Data(); }
|
||||||
|
|
||||||
|
using std::sqrt;
|
||||||
|
using std::fabs;
|
||||||
|
|
||||||
inline SIMD<double> sqrt (SIMD<double> a) { return std::sqrt(a.Data()); }
|
inline SIMD<double> sqrt (SIMD<double> a) { return std::sqrt(a.Data()); }
|
||||||
inline SIMD<double> fabs (SIMD<double> a) { return std::fabs(a.Data()); }
|
inline SIMD<double> fabs (SIMD<double> a) { return std::fabs(a.Data()); }
|
||||||
inline SIMD<double> L2Norm2 (SIMD<double> a) { return a.Data()*a.Data(); }
|
inline SIMD<double> L2Norm2 (SIMD<double> a) { return a.Data()*a.Data(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user