Matrix Library

derez

Expert
Licensed User
Longtime User
Matrix library provides means to perform mathematical operations between matrices (= arrays of dimension one or two ), on matrices and with scalars.

The attachment includes the library, the source (so it is compiled with the application), a help file and a demo program to play with.

In addition - I updated my Minimat program to use this library.

I'm looking forward to comments, bugs or advise for better programming :)

Edit: - found an error in the definition of Dot multiplication, raised to 1.1
Edit: - version 1.2 with solveM and SolveV ,for B and X matrices or vectors.
 

Attachments

  • Matrix1.2.zip
    17 KB · Views: 98
Last edited:

derez

Expert
Licensed User
Longtime User
Sorry, Dot multiplication is valid for vectors only, so I made a correction to version 1.1
 

derez

Expert
Licensed User
Longtime User
Matrix 1.2 updated, includes two options to solve a set of equations -
1. B and X are matrices
2. B and X are vectors.
 

derez

Expert
Licensed User
Longtime User
I thought that it provides better accuracy, due to truncation errors. I use it where there are divisions.
 
Top