Functions
vnl_matrix_exp.h File Reference

Compute the exponential of a square matrix. More...

#include "vnl/vnl_export.h"

Go to the source code of this file.

Functions

template<class SquareMatrix >
VNL_EXPORT bool vnl_matrix_exp (SquareMatrix const &X, SquareMatrix &expX, double max_err)
 Compute the exponential of a square matrix - fiddly form. More...
 
template<class SquareMatrix >
VNL_EXPORT SquareMatrix vnl_matrix_exp (SquareMatrix const &X)
 Compute the exponential of a square matrix - easy form. More...
 

Detailed Description

Compute the exponential of a square matrix.

Compute the exponential of a square matrix, by summing its exponential series $\exp(X) = \displaystyle\sum_{n \ge 0} X^n/n!$ till a convergence requirement is met.

Many improvements are possible.

Author
fsm
  Modifications:
   14-Jan-2007 Peter Vanroose - added vnl_matrix_fixed interface

Definition in file vnl_matrix_exp.h.

Function Documentation

◆ vnl_matrix_exp() [1/2]

template<class SquareMatrix >
VNL_EXPORT bool vnl_matrix_exp ( SquareMatrix const &  X,
SquareMatrix &  expX,
double  max_err 
)

Compute the exponential of a square matrix - fiddly form.

◆ vnl_matrix_exp() [2/2]

template<class SquareMatrix >
VNL_EXPORT SquareMatrix vnl_matrix_exp ( SquareMatrix const &  X)

Compute the exponential of a square matrix - easy form.