#ifndef GRID_TENSOR_UNARY_H #define GRID_TENSOR_UNARY_H namespace Grid { #define UNARY_REAL(func)\ template inline auto func(const iScalar &z) -> iScalar\ {\ iScalar ret;\ ret._internal = func( (z._internal));\ return ret;\ }\ template inline auto func(const iVector &z) -> iVector\ {\ iVector ret;\ for(int c1=0;c1 inline auto func(const iMatrix &z) -> iMatrix\ {\ iMatrix ret;\ for(int c1=0;c1 inline iScalar func(const iScalar &z,scal y) \ {\ iScalar ret;\ ret._internal = func(z._internal,y); \ return ret;\ }\ template inline iVector func(const iVector &z,scal y) \ {\ iVector ret;\ for(int c1=0;c1 inline iMatrix func(const iMatrix &z, scal y) \ {\ iMatrix ret;\ for(int c1=0;c1