Implement square

See merge request oss/rotgen!37
This commit is contained in:
Joel Falcou 2025-10-12 19:49:35 +02:00
commit 61121e0eb4

View file

@ -125,6 +125,12 @@ namespace rotgen
return a / b; return a / b;
} }
template<concepts::entity A>
auto square(A const& a)
{
return mul(a,a);
}
//----------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------
// Reductions // Reductions
//----------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------