Function expm #

计算矩阵指数 expm(A) = e^A。矩阵必须是方阵。不要与 exp(a) 混淆,后者执行逐元素指数运算。

指数是使用 Padé 近似与缩放和平方计算的;参见 Moler 和 Van Loan 的文章“Nineteen Dubious Ways to Compute the Exponential of a Matrix”。

Syntax #

math.expm(x)

Parameters #

Parameter Type Description
x 矩阵 一个方阵

Returns #

Type Description
矩阵 x 的指数

Throws #

Type | Description —- | ———–

Examples #

const A = [[0,2],[0,0]]
math.expm(A)        // returns [[1,2],[0,1]]

另请参阅 #

exp

Fork me on GitHub