Strassen矩阵乘法C#实现算法
我只是在自学算法&数据结构,我想知道是否有人有 Strassen 矩阵乘法算法的 C#(或 C++)实现?
我只是想运行它,看看它做了什么,并更多地了解它是如何工作的。
I'm just doing a self-study of Algorithms & Data structures and I'd like to know if anyone has a C# (or C++) implementation of Strassen's Algorithm for Matrix Multiplication?
I'd just like to run it and see what it does and get more of an idea of how it goes to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
免责声明:我还没有尝试过其中任何一个,但它们似乎是 OP 正在寻找的。这些链接只是查看一些 Google 代码搜索结果。
我发现了一个 C# 版本。该项目没有任何多余的装饰;这只是来源。然而,它似乎只是从我的第一次粗略扫描开始执行算法。特别是,您需要查看这个文件。
对于 C++,我在此 Google 代码项目中找到了一些代码。当然,代码是英文的,但 wiki 都是用西里尔文编写的语言(俄语?)。您主要需要查看 此文件。它似乎同时具有斯特拉森算法的串行和并行版本。
这些项目可能并不完全正确,但您可能需要更仔细地研究它们。
Disclaimer: I haven't tried any of these out, but they appear to be what OP is looking for. These links were just from looking through some Google Code Search results.
I found a C# version. The project doesn't have any frills; it's just the source. However, it appears to be doing the algorithm just from my first cursory scan. In particular, you will want to look at this file.
For C++, I found some code in this google code project. The code is, of course, in English, but the wiki is all in a Cyrillic-written language (Russian?). You will want to look mostly at this file. It appears to have both a serial and and parallel version of Strassen's algorithm.
These projects may not be fully correct, but they are things at which you might want to look more closely.