Solved

matrix operations

Posted on 2001-08-19
4
353 Views
Last Modified: 2012-08-13
is there is any source code for vb program that do matrix operation such as determinant,multiply,adjacent,reverse,...etc
0
Comment
Question by:aft
  • 2
4 Comments
 
LVL 14

Expert Comment

by:wsh2
ID: 6404285
Nope.. You have to write your own.. <sigh>

Eg.

Dim lngMatrix1(1 to 5, 1 to 10) As Long
Dim lngMatrix2(1 to 5, 1 to 10) As Long
Dim lngX As Long
Dim lngY As Long

For lngX = 1 to 5
   For lngY = 1 to 10
      lngMatrix2(lngX, lngY) = lngMatrix1(lngX, lngY)
   Next lngY
Next lngX
0
 

Author Comment

by:aft
ID: 6404304
can any one help me built it and i will increase the degrees to what ever he want
0
 

Author Comment

by:aft
ID: 6404308
and sow me also how can i build a function that return an array, and how can find the dimension of the returned array, and how to call this function know ing that i am using vb6
0
 
LVL 28

Accepted Solution

by:
Ark earned 20 total points
ID: 6404613
Hi

>>Matrix operations (addition, subtraction, and multiplication)<<
http://www.freevbcode.com/ShowCode.Asp?ID=132

>>Perform Real & Complex Matrix Operations<<
http://www.freevbcode.com/ShowCode.Asp?ID=2944

Cheers
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question