mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 19:59:05 +08:00
Code cleanup
This commit is contained in:
parent
b15a5dc3f4
commit
1644bafe29
@ -56,9 +56,9 @@ struct traits<Tensor<Scalar_, NumIndices_, Options_, IndexType_> >
|
|||||||
Options = Options_,
|
Options = Options_,
|
||||||
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0 : LvalueBit)
|
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0 : LvalueBit)
|
||||||
};
|
};
|
||||||
template<class T> struct MakePointer{
|
template <typename T> struct MakePointer {
|
||||||
typedef T* Type;
|
typedef T* Type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -74,9 +74,9 @@ struct traits<TensorFixedSize<Scalar_, Dimensions, Options_, IndexType_, MakePoi
|
|||||||
Options = Options_,
|
Options = Options_,
|
||||||
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0: LvalueBit)
|
Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0: LvalueBit)
|
||||||
};
|
};
|
||||||
template<class T> struct MakePointer{
|
template <typename T> struct MakePointer {
|
||||||
typedef typename MakePointer_<T>::Type Type;
|
typedef typename MakePointer_<T>::Type Type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -94,9 +94,9 @@ struct traits<TensorMap<PlainObjectType, Options_ , MakePointer_> >
|
|||||||
Options = Options_,
|
Options = Options_,
|
||||||
Flags = BaseTraits::Flags
|
Flags = BaseTraits::Flags
|
||||||
};
|
};
|
||||||
template<class T> struct MakePointer{
|
template <class T> struct MakePointer {
|
||||||
typedef typename MakePointer_<T>::Type Type;
|
typedef typename MakePointer_<T>::Type Type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename PlainObjectType>
|
template<typename PlainObjectType>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user