Quick Search for:  in language:    
Matrix,Operations,LibraryAbout,year,working,p
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,014,970. lines
 Jobs: 119. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic.
CString v1.5
By Ultimatum on 7/2


Tablature Pro
By Michael McMullen on 7/2


Click here to see a screenshot of this code!MSN Password Decryptor
By Muhammad Sufyan Ansari on 7/2

(Screen Shot)

Mp3 Paker
By Michael McMullen on 7/2


Suppress Run Time Script Errors
By Nuclear_1000G on 7/2


Click here to see a screenshot of this code!List Maker
By KBM-00 on 7/1

(Screen Shot)

Web Update Checker
By knormalnight on 7/1


A*Beginners API*
By Michael Nipper on 7/1


source hog v1.1
By Robert Justason on 7/1


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Matrix Operations Library

Print
Email
 
winzip icon
Submitted on: 1/16/2003 3:31:04 PM
By: Anas S. A. 
Level: Advanced
User Rating: By 43 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 2983 times.
 
 
     Matrix Operations Library About a year ago, I was working on a project. The project required many matrix operations, that time I really wished that I would find a class or a library with ready functions for matrix manipulations (like addition, inverse, multiplication, etc…) to use in Visual Basic. Unfortunately I could not find such a class, so I decided to write my own class, I called it "cMathLib" . This class gives the user the flexibility to work with matrices and do operations on them. The dimensions of the matrices are neither pre-specified nor limited. The code is highly optimized for fast operation. The code attached contains the class file called with a demonstration on how to use it. Opperations included in the class are : Add, Subtract, Determinant, Inverse, Transpose, Multiply, atan2, arc cos, arc sin, PI, Print, MultiplyVectors,Magnitude of a Vector, scalar multiply, and scalar divide. I really hope this class would be of any help to any of you who needs to work with matrix operations.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
1/16/2003 4:44:51 PM:BAS_ARM
5* (simple, clear & most of all 
usefull)
Some functions may generated 
for multi-dimencional arrays.
If 
anyone have the time he could writte 
code independed of array dimensions 
(maybee checking the number of array 
dimencions with the error in finding 
the Ubound etc)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/16/2003 7:12:50 PM:
Excellent, matrix operations can be a 
pain in the a*s unless you have a 
programmable calculator. Thanks for 
sharing it.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 4:28:11 AM:
this code is perfect! it's fast, clear 
n usefull.really thanks for sharing :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 5:19:39 AM:M.C
Didnt test it jet, but 5 globes(I do 
belive to descriptions)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 7:35:23 AM:
Keep Up the good work, thanks for 
sharing this code u saved me !!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 1:11:03 PM:
impressive work well explained easy and 
above all does the work, i never 
thought that any one would share such a 
library for free. Thnaks alot, now i 
can work on my project without writing 
any matrix functions. the code is fast 
!!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 4:02:13 PM:The New iSoftware Company!
Want to help me take this to vb .net?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 5:48:15 PM:
Good work!! you deserve five stars
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/17/2003 9:32:39 PM:
cool this class is a saver ,though i 
wished u had eigen vectors and rank 
functions in it too!! anyways thanks 
for sharing it :)
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/19/2003 3:23:32 AM:Robert Rayment
Excellent and useful*****
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/19/2003 5:37:34 AM:Peter Wilson
Keep up the good work!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/19/2003 9:37:33 AM:
u really did a good job man!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/20/2003 6:46:40 AM:
This is exactly what i want for my 
project thanx alot
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/20/2003 9:37:52 AM:
easy well explained a definite 5 starts 
good work!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/21/2003 12:40:24 PM:Dhaval Faria
its really excellent.. I was looking 
for this only.. I done this Matrix 
operationg.. Addition and Subtraction 
in VB.NET and now goin for more.. like 
inverse and all, but at the mean time, 
I found your.. so I get proper logic.. 
thanks man.. 5 globes from me.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/21/2003 5:49:27 PM:
Hey man its an awesome thing u did 
there, keep the hard work....urs
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
1/27/2003 1:30:13 AM:
please send matrix library for multi 
and sum
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/16/2003 6:04:22 AM:R. C. Sharma
function acos contains an error. The 
correct version should be
if x=1 
then
acos= right angle
else
.
.the 
given code
.
endif
 by 
rcs1949@yahoo.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/17/2003 6:43:06 AM:R. C. Sharma

function asin should be as 
follows
Public Function asin(ByVal X 
As Double) As Double
if x*x-1 
then
asin=pi/2
else
 asin = Atn(X / 
(Sqr(Abs(1 - X * X)) + 
1E-200))
endif
End Function
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/17/2003 6:47:10 AM:R. C. Sharma
function acos contains an error. The 
correct version should be
if x=1 
then
acos= 0
else
.
.the 
given 
code
.
endif
 by 
rcs1949@yahoo.com
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
4/17/2003 6:48:23 AM:R. C. Sharma
function asin should be as 
follows
Public Function asin(ByVal 
X 
As Double) As Double
if x*x=1 
then
asin=pi/2
else
 asin = Atn(X 
/ 
(Sqr(Abs(1 - X * X)) + 
1E-200))
endif
End Function
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.