28 template<
bool Condition,
typename Then,
typename Else>
31 template<
typename Then,
typename Else>
34 template<
typename T,
typename U>
struct is_same {
enum {
value = 0 }; };
47 template <
class T,
unsigned int Size>
struct remove_const<const
T[Size]> {
typedef T type[Size]; };
86 template<
bool Condition,
typename T>
struct enable_if;
119 template<
typename Func,
typename ArgType,
int SizeOf=sizeof(has_none)>
122 template<
typename Func,
typename ArgType>
125 template<
typename Func,
typename ArgType>
128 template<
typename Func,
typename ArgType>
133 static has_tr1_result testFunctor(
T const *,
typename T::template result<
T(ArgType)>::
type const * = 0);
137 enum {FunctorType =
sizeof(testFunctor(static_cast<Func*>(0)))};
141 template<
typename Func,
typename ArgType0,
typename ArgType1,
int SizeOf=sizeof(has_none)>
144 template<
typename Func,
typename ArgType0,
typename ArgType1>
146 {
typedef typename Func::result_type
type;};
148 template<
typename Func,
typename ArgType0,
typename ArgType1>
150 {
typedef typename Func::template result<Func(ArgType0,ArgType1)>::type
type;};
152 template<
typename Func,
typename ArgType0,
typename ArgType1>
157 static has_tr1_result testFunctor(
T const *,
typename T::template result<
T(ArgType0,ArgType1)>::
type const * = 0);
161 enum {FunctorType =
sizeof(testFunctor(static_cast<Func*>(0)))};
170 int SupX = ((Y==1) ? 1 : Y/2),
171 bool Done = ((SupX-InfX)<=1 ?
true : ((SupX*SupX <= Y) && ((SupX+1)*(SupX+1) > Y))) >
176 MidX = (InfX+SupX)/2,
177 TakeInf = MidX*MidX > Y ? 1 : 0,
178 NewInf =
int(TakeInf) ? InfX : int(MidX),
179 NewSup = int(TakeInf) ? int(MidX) : SupX
185 template<
int Y,
int InfX,
int SupX>
186 class meta_sqrt<Y, InfX, SupX, true> {
public:
enum { ret = (SupX*SupX <= Y) ? SupX : InfX }; };
191 enum { Defined = 0 };
228 {
enum { ret =
false }; };
231 {
enum { ret =
true }; };
234 {
enum { ret =
true }; };
237 {
enum { ret =
true }; };
243 #endif // EIGEN_META_H
std::complex< T > ReturnType
remove_all< T >::type type
std::complex< T > ReturnType
USING_NAMESPACE_ACADO typedef TaylorVariable< Interval > T
Func::template result< Func(ArgType)>::type type
Func::template result< Func(ArgType0, ArgType1)>::type type
remove_all< T >::type type
Represents a diagonal matrix with its storage.
iterative scaling algorithm to equilibrate rows and column norms in matrices
remove_all< T >::type type
remove_all< T >::type type
unary_result_of_select< Func, ArgType, FunctorType >::type type
Expression of a diagonal matrix.
remove_all< T >::type type
binary_result_of_select< Func, ArgType0, ArgType1, FunctorType >::type type