vb.net中矩阵乘法的优化

时间:2016-10-22 01:32:15

标签: vb.net optimization

我目前正在尝试在visual basic中的神经网络类上做一些工作。我目前的主要阻力是矩阵的乘法是所以慢!这是我现在使用的代码;

We will call A.foo()
     A.foo() begins
     My name is: A
     My super's name is: FooBase
     A.__mro__ is (<class '__main__.A'>, <class '__main__.FooBase'>, <type 'object'>)
         Base.foo() begins
         My name is: A
         My super's name is not available
         Base.foo() ends
     A.foo() ends
We will call C.foo()
C.foo() begins
My name is: C
My super's name is: A
 C.__mro__ is (<class '__main__.C'>, <class '__main__.A'>, <class '__main__.B'>, <class '__main__.FooBase'>, <type 'object'>)
     A.foo() begins
     My name is: C
     My super's name is: B
     A.__mro__ is (<class '__main__.A'>, <class '__main__.FooBase'>, <type 'object'>)
     B.foo() begins
     My name is: C
     My super's name is: FooBase
     B.__mro__ is (<class '__main__.B'>, <class '__main__.FooBase'>, <type 'object'>)
         Base.foo() begins
         My name is: C
         My super's name is not available
         Base.foo() ends
     B.foo() ends
     A.foo() ends
C.foo() ends

我只是参差不齐的数组,因为它们在vb中比矩形数组更快。当然它们确实是矩形的,否则矩阵乘法不起作用(或有意义)。任何建议/帮助将不胜感激,作为参考,矩阵大小可以改变,但目前最大约7,000 x 2,000。

0 个答案:

没有答案