如何将一个矩阵(mxn)分解成两个因子(mxr, rxn)在Matlab中?

时间:2021-02-14 04:38:35

I want to start with a mxn matrix A and factorise it into two matrices mxr and rxn. r can be greater than the dimensions of matrix A.

我想从一个mxn矩阵a开始把它分解成两个矩阵mxr和rxn。r可以大于矩阵A的维数。

nnmf allows only for r< min(size(A))

nnmf只允许r< min(size(A))

Is there a way I can factorise the matrix into two matrices?

有没有一种方法可以把矩阵分解成两个矩阵?

2 个解决方案

#1


1  

There are some factorization functions available in matlab, see here: http://www.matrixlab-examples.com/matrix-decomposition.html

在matlab中有一些可分解的函数,请参见这里:http://www.matrixlab-examples.com/matrix- demoposition.html。

e.g. LU / qr - factorization, cholesky etc...

例如:LU / qr -因数分解,cholesky等…

#2


1  

You can visit Professor Haesun Park's Academic Home Page and download this package from there.

您可以访问Haesun Park教授的学术主页,并从那里下载这个包。

Actually she implements Non-Negative Matrix Factorization with Alternating Non-Negativity-constrained Least Squares and Block Principal Pivoting / Active Set Methods in Matlab.

实际上,在Matlab中,她实现了非负矩阵分解和非负约束最小二乘和块主旋转/主动集方法。

Also you can find implementation of Mixed Membership Matrix Factorization (M3F) in Matlab, here.

还可以在Matlab中找到混合成员矩阵分解(M3F)的实现。

#1


1  

There are some factorization functions available in matlab, see here: http://www.matrixlab-examples.com/matrix-decomposition.html

在matlab中有一些可分解的函数,请参见这里:http://www.matrixlab-examples.com/matrix- demoposition.html。

e.g. LU / qr - factorization, cholesky etc...

例如:LU / qr -因数分解,cholesky等…

#2


1  

You can visit Professor Haesun Park's Academic Home Page and download this package from there.

您可以访问Haesun Park教授的学术主页,并从那里下载这个包。

Actually she implements Non-Negative Matrix Factorization with Alternating Non-Negativity-constrained Least Squares and Block Principal Pivoting / Active Set Methods in Matlab.

实际上,在Matlab中,她实现了非负矩阵分解和非负约束最小二乘和块主旋转/主动集方法。

Also you can find implementation of Mixed Membership Matrix Factorization (M3F) in Matlab, here.

还可以在Matlab中找到混合成员矩阵分解(M3F)的实现。