mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
API change: ei_matrix_exponential(A) --> A.exp(), etc
As discussed on mailing list; see http://listengine.tuxfamily.org/lists.tuxfamily.org/eigen/2010/02/msg00190.html
This commit is contained in:
@@ -290,8 +290,8 @@ void MatrixExponential<MatrixType>::computeUV(double)
|
||||
* This class holds the argument to the matrix exponential until it
|
||||
* is assigned or evaluated for some other reason (so the argument
|
||||
* should not be changed in the meantime). It is the return type of
|
||||
* ei_matrix_exponential() and most of the time this is the only way
|
||||
* it is used.
|
||||
* MatrixBase::exp() and most of the time this is the only way it is
|
||||
* used.
|
||||
*/
|
||||
template<typename Derived> struct MatrixExponentialReturnValue
|
||||
: public ReturnByValue<MatrixExponentialReturnValue<Derived> >
|
||||
@@ -381,11 +381,10 @@ struct ei_traits<MatrixExponentialReturnValue<Derived> >
|
||||
* \c complex<float> or \c complex<double> .
|
||||
*/
|
||||
template <typename Derived>
|
||||
MatrixExponentialReturnValue<Derived>
|
||||
ei_matrix_exponential(const MatrixBase<Derived> &M)
|
||||
const MatrixExponentialReturnValue<Derived> MatrixBase<Derived>::exp() const
|
||||
{
|
||||
ei_assert(M.rows() == M.cols());
|
||||
return MatrixExponentialReturnValue<Derived>(M.derived());
|
||||
ei_assert(rows() == cols());
|
||||
return MatrixExponentialReturnValue<Derived>(derived());
|
||||
}
|
||||
|
||||
#endif // EIGEN_MATRIX_EXPONENTIAL
|
||||
|
||||
Reference in New Issue
Block a user