mirror of
https://github.com/lavaux/glmath.git
synced 2024-11-22 02:58:30 +01:00
24 lines
223 B
C++
24 lines
223 B
C++
#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
|