doc + quick bug fix in Matrix ctor

This commit is contained in:
Gael Guennebaud
2008-08-28 00:33:58 +00:00
parent f7de12de69
commit 70266b4d05
7 changed files with 30 additions and 15 deletions

View File

@@ -25,6 +25,7 @@ namespace Eigen {
*/
#include "src/Core/util/Memory.h"
#include "src/Core/NumTraits.h"
#include "src/Core/MathFunctions.h"
#include "src/Core/GenericPacketMath.h"

View File

@@ -335,7 +335,8 @@ class Matrix
inline Matrix(const MatrixBase<OtherDerived>& other)
: m_storage(other.rows() * other.cols(), other.rows(), other.cols())
{
Base::lazyAssign(other.derived());
ei_assign_selector<Matrix,OtherDerived,false>::run(*this, other.derived());
//Base::operator=(other.derived());
}
/** Copy constructor */
inline Matrix(const Matrix& other)

View File

@@ -81,6 +81,8 @@ template<typename Scalar> struct ei_scalar_min_op;
template<typename Scalar> struct ei_scalar_max_op;
template<typename Scalar> struct ei_scalar_random_op;
template<typename Scalar> struct ei_scalar_add_op;
template<typename Scalar> struct ei_scalar_constant_op;
template<typename Scalar> struct ei_scalar_identity_op;
struct IOFormat;

View File

@@ -121,5 +121,4 @@
|| int(TYPE0::ColsAtCompileTime)==int(TYPE1::ColsAtCompileTime))),\
you_mixed_matrices_of_different_sizes)
#endif // EIGEN_STATIC_ASSERT_H

View File

@@ -161,8 +161,7 @@ public:
{ return m_angle += other.m_angle; }
/** Applies the rotation to a 2D vector */
template<typename Derived>
Vector2 operator* (const MatrixBase<Derived>& vec) const
Vector2 operator* (const Vector2& vec) const
{ return toRotationMatrix() * vec; }
template<typename Derived>