19 #ifndef _libint2_include_libint2intrinsicoperations_h_ 20 #define _libint2_include_libint2intrinsicoperations_h_ 29 template <
typename X,
typename Y,
typename Z>
35 template <
typename X,
typename Y,
typename Z>
48 #define _libint2_static_api_bzero_short_(X,nelem) for(int i=0; i < (nelem); ++i) { (X)[i] = 0.0; } 50 #define _libint2_static_api_copy_short_(X,Y,nelem) for(int i=0; i < (nelem); ++i) { (X)[i] = (Y)[i]; } 52 #define _libint2_static_api_scale_short_(X,Y,nelem,a) for(int i=0; i < (nelem); ++i) { (X)[i] = (a) * (Y)[i]; } 54 #define _libint2_static_api_scale_vec_short_(X,Y,nelem,a,vl) for(int i=0, iv=0; i < (nelem)/(vl); ++i) { for(int v=0; v < (vl); ++v, ++iv) { (X)[iv] = (a)[v] * (Y)[iv]; } } 56 #define _libint2_static_api_inc_short_(X,Y,nelem,a) for(int i=0; i < (nelem); ++i) { (X)[i] = libint2::fma_plus((a),(Y)[i],(X)[i]); } 58 #define _libint2_static_api_inc1_short_(X,Y,nelem) for(int i=0; i < (nelem); ++i) { (X)[i] += (Y)[i]; } Z fma_minus(X x, Y y, Z z)
Definition: intrinsic_operations.h:36
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:23
Z fma_plus(X x, Y y, Z z)
Definition: intrinsic_operations.h:30