创建一个矩阵 [英] creating a matrix

查看:85
本文介绍了创建一个矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..我是Visual Basic 2005快递版的新手,需要一些帮助。我目前正在开发一个关于开发人工神经网络的项目并且有点卡住


首先,我需要将3个文本框中的值存储到矩阵中,然后将其与另一个矩阵相乘(标准号码)。谁能告诉我怎么去做呢?


谢谢!

解决方案

可能有更好的方法,但是最简单的方法是将它们存储在一个数组中,然后使用一个循环来运行数组并进行乘法运算。对于多个维度,只需使用嵌套循环。



可能有更好的方法,但最简单的方法是将它们存储在然后使用循环来运行数组并进行乘法运算。对于多个维度,只需使用嵌套循环。



Hihi感谢您的帮助!我也考虑过数组,但我处理的矩阵大小最多为40 x 273.你能不能给我一个如何用嵌套循环创建一个多维数组的例子?


< blockquote>

展开 | 选择 | Wrap | 行号


Hi.. Im new to visual basic 2005 express edition and need some help. I am currently doing a project on developing Artifical Neural Network and is kind of stuck

First of all, i need to store values from 3 textbox into a matrix and then multiply it with another matrix ( Standard number). Can anyone tell me how do i go about doing it?

Thanks!

解决方案

There may be better ways, but the simplest would be to store them in an array, then use a loop to run through the array and do the multiplication. For more than one dimension, just use nested loops.


There may be better ways, but the simplest would be to store them in an array, then use a loop to run through the array and do the multiplication. For more than one dimension, just use nested loops.

Hihi thanks for the help! I did thought of arrays too but im dealing with matrix size of up to 40 x 273. Do you mind given me an example of how to create a array of more then one dimension using nested loops?


Expand|Select|Wrap|Line Numbers


这篇关于创建一个矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆