Is it possible to improve performance of the Kron operator by making it a built in function rather than using m-file implementation?
5 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2014 年 1 月 9 日
編集済み: MathWorks Support Team
2021 年 4 月 19 日
I use the kron operator as well as row-wise and column-wise Kronecker operators extensively in my work and in packages I write in Matlab. Given the importance of these operators it would be nice to have intrinsic functions rather than m-files implementations. For years I have relied on MEX file versions that I wrote which can be hundreds of times faster than the m-file versions, especially for sparse matrices. I would like you to consider providing intrincis versions of these operators. I've attached my MEX file versions which you are welcome to use.
採用された回答
MathWorks Support Team
2019 年 10 月 21 日
The functionality requested is currently unavailable in MATLAB. This has been forwarded to our Developers as an enhancement request.
2 件のコメント
Matt J
2020 年 4 月 29 日
Fabricius Somogyi's comment moved here:
Unfortunately I cannot find the MEX files that you attached in this thread. Could you kindly re-attach them? I am having similar issues with kron() being too slow for my purposes. Thanks!
Matt J
2020 年 8 月 18 日
amir sh's comment moved here:
is it possible for you to re-attach the MEX file?
その他の回答 (1 件)
Matt J
2014 年 1 月 9 日
編集済み: MathWorks Support Team
2021 年 4 月 19 日
I wouldn't expect an intrinsic implementation to improve much. Most of the computational intensity of KRON is in all the multiplication operations required and those are well-accelerated through calls to BSXFUN.
Also, there are many operations involving Kronecker product matrices that are more efficiently done without computing the product explicitly with KRON. See here for a tool that facilitates this,
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!