在朱莉娅(Julia)中复制matlab
众所周知,矩阵的特征分解不是唯一的。
但是我想知道是否可以在Julia中复制Matlab的eig
函数。
也就是说,假设特征值的上升顺序,具有精确输出到数字误差。
假设我们将MATLAB的eig
的选项设置为其默认值(BalanceOption
,Balance
,使用Choleskyky
用于对称矩阵和qz
作为其他算法)。
由于MATLAB正在使用Intel Mkl
,因此在Julia中也可以假设MKL.JL
(是否对eigen
函数有影响? )。
It is known that the Eigen decomposition of a matrix isn't unique.
Yet I wonder if one could replicate MATLAB's eig
function in Julia.
Namely have exact output up to numeric errors assuming ascending order of the eigen values.
Assuming we set the options of MATLAB's eig
to their default (balanceOption
, balance
, Using cholesky
for symmetric matrices and qz
for others as algorithms).
Since MATLAB is using Intel MKL
so assuming also MKL.jl
is available in Julia (does it have an effect on Julia for the eigen
function?).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是确定标准化特征向量的食谱。这里有任意选择将向量正常化并将复数排序为(实际,复杂)的元素,并选择特征向量组件的符号,以便在归一化矢量中具有最大的实际值(请参阅注释):
Here is a recipe for deciding on a standardized eigenvector. There are arbitrary choices here to normalize the vector and to sort complex numbers as tuples of (real, complex) and to choose the signs of the eigenvector components so as to have the largest real value in the normalized vector (see comments):