mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
generalized ei_traits<>.
Finally the importing macro is named EIGEN_BASIC_PUBLIC_INTERFACE because it does not only import the ei_traits, it also makes the base class a friend, etc.
This commit is contained in:
@@ -30,12 +30,12 @@ template<typename OtherDerived>
|
||||
void MatrixBase<Derived>::swap(const MatrixBase<OtherDerived>& other)
|
||||
{
|
||||
MatrixBase<OtherDerived> *_other = const_cast<MatrixBase<OtherDerived>*>(&other);
|
||||
if(Traits::SizeAtCompileTime == Dynamic)
|
||||
if(SizeAtCompileTime == Dynamic)
|
||||
{
|
||||
Scalar tmp;
|
||||
if(Traits::IsVectorAtCompileTime)
|
||||
if(IsVectorAtCompileTime)
|
||||
{
|
||||
assert(OtherDerived::Traits::IsVectorAtCompileTime && size() == _other->size());
|
||||
assert(OtherDerived::IsVectorAtCompileTime && size() == _other->size());
|
||||
for(int i = 0; i < size(); i++)
|
||||
{
|
||||
tmp = coeff(i);
|
||||
|
||||
Reference in New Issue
Block a user