在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):andrewssobral/mtt开源软件地址(OpenSource Url):https://github.com/andrewssobral/mtt开源编程语言(OpenSource Language):MATLAB 100.0%开源软件介绍(OpenSource Introduction):Last update: 08/09/2014 MTTMatlab Tensor Tools is an easy-to-use library to work with tensors.
CitationIf you use this code for your publications, please cite it as:
Demos
Example of tensor operationsA = reshape(1:12,[2,2,3]);
B = reshape(1:12,[2,2,3]);
%% Basic operations
[A1,A2,A3] = tensor_matricization(A);
M22 = reshape(1:4,[2,2]);
M33 = reshape(1:9,[3,3]);
B1 = tensor_nmodeproduct(A,M22,1);
B2 = tensor_nmodeproduct(A,M22,2);
B3 = tensor_nmodeproduct(A,M33,3);
Au = tensor_unfold(A);
A_hat = tensor_fold(Au,size(A));
[A1_] = tensor_slices_frontal(A);
[A2_] = tensor_slices_lateral(A);
[A3_] = tensor_slices_horizontal(A);
[At1_] = tensor_fibers_column(A);
[At2_] = tensor_fibers_row(A);
[At3_] = tensor_fibers_tube(A);
Bt = tensor_transpose(B);
[C] = tensor_product(A,B);
%% HoSVD and iHoSVD decomposition
T = tensor(A);
[core,U] = tensor_hosvd(T);
[T_hat] = tensor_ihosvd(core,U);
%% t-SVD decomposition
[U,S,V] = tensor_t_svd(A);
[C] = tensor_product(U,S);
[A_hat] = tensor_product(C,tensor_transpose(V));
%% Tucker ALS decomposition
r = 10;
T_hat = tucker_als(T,[r r r]);
%% PARAFAC/CP ALS decomposition
T_hat = cp_als(T, r); |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论