#include <Meta.h>
|
enum | { ret = meta_sqrt<Y, NewInf, NewSup>::ret
} |
|
|
enum | { MidX = (InfX + SupX) / 2
} |
|
template<int Y, int InfX = 0, int SupX = ((Y == 1) ? 1 : Y / 2), bool Done = ((SupX - InfX) <= 1 || ((SupX * SupX <= Y) && ((SupX + 1) * (SupX + 1) > Y)))>
class Eigen::internal::meta_sqrt< Y, InfX, SupX, Done >
In short, it computes int(sqrt(Y)) with Y an integer. Usage example:
◆ anonymous enum
template<int Y, int InfX = 0, int SupX = ((Y == 1) ? 1 : Y / 2), bool Done = ((SupX - InfX) <= 1 || ((SupX * SupX <= Y) && ((SupX + 1) * (SupX + 1) > Y)))>
466 MidX = (InfX + SupX) / 2,
468 NewInf =
int(TakeInf) ? InfX :
int(
MidX),
const char Y
Definition: test/EulerAngles.cpp:32
◆ anonymous enum
template<int Y, int InfX = 0, int SupX = ((Y == 1) ? 1 : Y / 2), bool Done = ((SupX - InfX) <= 1 || ((SupX * SupX <= Y) && ((SupX + 1) * (SupX + 1) > Y)))>
The documentation for this class was generated from the following file: