mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 21:34:30 +08:00
Attempt to fix MatrixExponential/Function related warnings.
This commit is contained in:
parent
aeb12b417d
commit
9a6967d9ba
@ -132,7 +132,7 @@ class MatrixExponential {
|
|||||||
typedef typename NumTraits<Scalar>::Real RealScalar;
|
typedef typename NumTraits<Scalar>::Real RealScalar;
|
||||||
|
|
||||||
/** \brief Reference to matrix whose exponential is to be computed. */
|
/** \brief Reference to matrix whose exponential is to be computed. */
|
||||||
const MatrixType& m_M;
|
const typename ei_nested<MatrixType>::type m_M;
|
||||||
|
|
||||||
/** \brief Even-degree terms in numerator of Padé approximant. */
|
/** \brief Even-degree terms in numerator of Padé approximant. */
|
||||||
MatrixType m_U;
|
MatrixType m_U;
|
||||||
@ -313,7 +313,7 @@ template<typename Derived> struct MatrixExponentialReturnValue
|
|||||||
template <typename ResultType>
|
template <typename ResultType>
|
||||||
inline void evalTo(ResultType& result) const
|
inline void evalTo(ResultType& result) const
|
||||||
{
|
{
|
||||||
const typename ei_eval<Derived>::type srcEvaluated = m_src.eval();
|
const typename Derived::PlainObject srcEvaluated = m_src.eval();
|
||||||
MatrixExponential<typename Derived::PlainObject> me(srcEvaluated);
|
MatrixExponential<typename Derived::PlainObject> me(srcEvaluated);
|
||||||
me.compute(result);
|
me.compute(result);
|
||||||
}
|
}
|
||||||
|
@ -117,7 +117,7 @@ class MatrixFunction<MatrixType, 0>
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const MatrixType& m_A; /**< \brief Reference to argument of matrix function. */
|
const typename ei_nested<MatrixType>::type m_A; /**< \brief Reference to argument of matrix function. */
|
||||||
StemFunction *m_f; /**< \brief Stem function for matrix function under consideration */
|
StemFunction *m_f; /**< \brief Stem function for matrix function under consideration */
|
||||||
|
|
||||||
MatrixFunction& operator=(const MatrixFunction&);
|
MatrixFunction& operator=(const MatrixFunction&);
|
||||||
@ -167,7 +167,7 @@ class MatrixFunction<MatrixType, 1>
|
|||||||
void computeOffDiagonal();
|
void computeOffDiagonal();
|
||||||
DynMatrixType solveTriangularSylvester(const DynMatrixType& A, const DynMatrixType& B, const DynMatrixType& C);
|
DynMatrixType solveTriangularSylvester(const DynMatrixType& A, const DynMatrixType& B, const DynMatrixType& C);
|
||||||
|
|
||||||
const MatrixType& m_A; /**< \brief Reference to argument of matrix function. */
|
const typename ei_nested<MatrixType>::type m_A; /**< \brief Reference to argument of matrix function. */
|
||||||
StemFunction *m_f; /**< \brief Stem function for matrix function under consideration */
|
StemFunction *m_f; /**< \brief Stem function for matrix function under consideration */
|
||||||
MatrixType m_T; /**< \brief Triangular part of Schur decomposition */
|
MatrixType m_T; /**< \brief Triangular part of Schur decomposition */
|
||||||
MatrixType m_U; /**< \brief Unitary part of Schur decomposition */
|
MatrixType m_U; /**< \brief Unitary part of Schur decomposition */
|
||||||
@ -520,7 +520,7 @@ template<typename Derived> class MatrixFunctionReturnValue
|
|||||||
template <typename ResultType>
|
template <typename ResultType>
|
||||||
inline void evalTo(ResultType& result) const
|
inline void evalTo(ResultType& result) const
|
||||||
{
|
{
|
||||||
const typename ei_eval<Derived>::type Aevaluated = m_A.eval();
|
const typename Derived::PlainObject Aevaluated = m_A.eval();
|
||||||
MatrixFunction<typename Derived::PlainObject> mf(Aevaluated, m_f);
|
MatrixFunction<typename Derived::PlainObject> mf(Aevaluated, m_f);
|
||||||
mf.compute(result);
|
mf.compute(result);
|
||||||
}
|
}
|
||||||
@ -529,7 +529,7 @@ template<typename Derived> class MatrixFunctionReturnValue
|
|||||||
Index cols() const { return m_A.cols(); }
|
Index cols() const { return m_A.cols(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const Derived& m_A;
|
const typename ei_nested<Derived>::type m_A;
|
||||||
StemFunction *m_f;
|
StemFunction *m_f;
|
||||||
|
|
||||||
MatrixFunctionReturnValue& operator=(const MatrixFunctionReturnValue&);
|
MatrixFunctionReturnValue& operator=(const MatrixFunctionReturnValue&);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user