glmath/ext_src/algo.hpp

24 lines
223 B
C++
Raw Permalink Normal View History

2024-11-07 12:56:43 +01:00
#ifndef __COSMOTOOL_ALGO_HPP
#define __COSMOTOOL_ALGO_HPP
namespace CosmoTool
{
template<typename T>
T cube(T a)
{
return a*a*a;
}
template<typename T>
T square(T a)
{
return a*a;
}
}
#endif