在Matlab中计算大矩阵的Jordan常规形式

时间:2018-01-29 10:01:48

标签: python matlab bigdata

您好

我想在Matlab中计算Jordan正规形式的大圆矩阵(即365 x 365的顺序)

例如,4x4圆形矩阵具有以下形式:

A = [0 1 0 0 ; 0 0 1 0 ; 0 0 0 1 ;1 0 0 0]

当我将其称为AA时,其尺寸为365 x 365:

[v,j] = eng.jordan(mtdb_G_time_cyc,nargout = 2)

我收到此错误:

Error using symengine (line 58)
Similarity matrix is too large.

Error in sym/mupadmexnout (line 875)
    out = mupadmex(fcn,args{:});

Error in sym/jordan (line 34)
    [Vsym,Jsym] = mupadmexnout('symobj::jordan',A,'All');

Error in double/jordan (line 25)
[V,J] = jordan(sym(A));

Traceback (most recent call last):
File "D:/MSC/Term1/BD/Paper_persentation/Code/big data GSP/main.py", line 
79, in <module>
[v,j] = eng.jordan(mtdb_G_time_cyc,nargout = 2)
File "C:\Users\Arian\Anaconda2\lib\site-
packages\matlab\engine\matlabengine.py", line 80, in __call__
_stderr).result()
File "C:\Users\Arian\Anaconda2\lib\site-
packages\matlab\engine\futureresult.py", line 109, in result
self._future,self._nargout, None, out=self._out, err=self._err)
matlab.engine.MatlabExecutionError: 
File C:\Program Files\MATLAB\R2014b\toolbox\symbolic\symbolic\symengine.p, 
line 58, in symengine

File C:\Program Files\MATLAB\R2014b\toolbox\symbolic\symbolic\@sym\sym.m, 
line 875, in sym.mupadmexnout

 File C:\Program 
 Files\MATLAB\R2014b\toolbox\symbolic\symbolic\@sym\jordan.m, line 34, in 
 jordan

 File C:\Program 
 Files\MATLAB\R2014b\toolbox\symbolic\symbolic\@double\jordan.m, line 25, in 
 jordan
 Similarity matrix is too large.

实际上,我通过python调用了Matlab函数。

有什么方法可以计算乔丹形式吗?

我很感激您的解决方案

0 个答案:

没有答案