简体   繁体   English

Accord.NET矩阵乘法

[英]Accord.NET matrix multiplication

In Accord.NET (C#) how can I multiply a matrix with a scalar? 在Accord.NET(C#)中,如何将矩阵与标量相乘? Extension methods introduced in Wiki pages do not seem to work. Wiki页面中引入的扩展方法似乎无效。 I have tried the following examples from the author and the wiki pages on GitHub but none of them worked: http://crsouza.com/2010/08/10/matrix-manipulation-using-accord-net/ enter link description here 我已经尝试了来自GitHub上的作者和Wiki页面的以下示例,但没有一个起作用: http : //crsouza.com/2010/08/10/matrix-manipulation-using-accord-net/ 在此处输入链接描述

According to their documentation you use: 根据他们的文档,您使用:

C = A.Multiply(B);

Where A is a Matrix and B is a Scalar. 其中A是矩阵,B是标量。

So to multiply a matrix, A by 3, you would write 因此,要将矩阵A乘以3,您将

C = A.Multiply(3);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM