C#中的矩阵乘法 [英] Matrix Multiplication in C#
本文介绍了C#中的矩阵乘法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想将每个矩阵3行和3列的两个矩阵相乘,其中一个矩阵在Excel文件中,其他矩阵在C#Program中。
我将如何访问excel矩阵然后在C#中相乘?
我需要或一些指导来为上述情况开发C#代码。帮助请
谢谢所有
Ilyas
解决方案
从这里开始: C#矩阵库 [ ^ ]在这里: http:/ /msdn.microsoft.com/en-us/library/dd264733.aspx [ ^ ]
...不,实际上以 google搜索开头!
您可以找到关于Excel
和C#
互操作性的材料,例如我们在CodeProject上有以下文章:用C#打开和导航Excel [ ^ ]。
从Excel
,乘法很简单(只有两次嵌套迭代)。
Hi all,
I want to multiply two matrices each matrix 3 rows and 3 columns, where one matrix is in Excel file and other matrix I have in C# Program.
How I will access to excel matrix and then multiply in C#?
I need or some guidance to develop C# code for the above situation. Help Please
Thanks All
Ilyas
解决方案
Start here: C# Matrix Library[^] and here: http://msdn.microsoft.com/en-us/library/dd264733.aspx[^]
... no, actually start with googling!
You may find a lof of material aboutExcel
andC#
interoperability, for instance we have the following article, here at CodeProject: Opening and Navigating Excel with C#[^].
Once you have imported the matrix fromExcel
, the multiplication is trivial (just two nested iterations).
这篇关于C#中的矩阵乘法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文