Implement square

See merge request oss/rotgen!37
This commit is contained in:
Joel Falcou 2025-10-12 19:49:34 +02:00
parent 746e2dcf9a
commit 2387bacc97

View file

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