ENH: transform: support for unsigned int

This commit is contained in:
mattijs
2020-04-20 09:04:23 +01:00
parent 302b4443e8
commit da070b573f

View File

@ -172,6 +172,20 @@ inline label invTransform(const tensor&, const label i)
}
//- No-op rotational transform of an unsigned integer
inline unsigned int transform(const tensor&, const unsigned int i)
{
return i;
}
//- No-op inverse rotational transform of an unsigned integer
inline unsigned int invTransform(const tensor&, const unsigned int i)
{
return i;
}
//- No-op rotational transform of a scalar
inline scalar transform(const tensor&, const scalar s)
{