Login   Register  
PHP Classes
elePHPant
Icontem

Future development. - Matrix new package blog

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  All package blogs All package blogs   Matrix new Matrix new   Blog Matrix new package blog   RSS 1.0 feed RSS 2.0 feed   Blog Future development.  
  Post a comment Post a comment   See comments See comments (1)   Trackbacks (0)  
<< Previous: Basic improvements fr...>> Next: Performance improvements
Author: Pier-André Bouchard St-Amant

Posted on: 2009-11-17

Package: Matrix new

My goal is to be able to implement basic macroeconomic models on webpages. I discuss some ideas that I might implement in the new Matrix class in the future, depending on their usefulness and the time they might take. Feel free to give some suggestions if you feel they should be part of a matrix class.



Picture of Pier-André Bouchard St-Amant
Pier-André Bouchard St-Amant Canada
pabsta.qc.ca

<email contact>
I feel this matrix class is an improvement from the previous one, but it still lacks the robustness I need. Moreover, there are still some room for performance improvements and new functions. Here are below the ideas I have to improve this matrix class :

1- Reoptimise code by using the convention that "zero" is not a stored in the vectors and thus, replace for by foreach in most of the routines.

2- Introduce a general Gauss-Seidel algorithm that is more numerically stable than "classic" matrix inversion. This will probably yield new functions such diag (the diagonal of a matrix), upper_tri (upper triangle matrix), and lower_tri (lower triangle matrix) for matrix decomposition.

3- Introduce a method to find eigenvalues (and eigenvectors).

4- Some basic functions such as the trace of a matrix and whatever else that cross my mind which does not take 2000 lines of code.

More generally, I intend to work on :
5- Matrix representation of quadratic approximation of a system of equations and Quadratic regulators.
6- Automatised numerical estimation of the previous point based on a set of "code like" set of equations (if necessary).


Comments:

1. RE: Future development - Jasper Soetendal (2010-06-20 12:49)
Eigenvalues and eigenvectors... - 0 replies
Read the whole comment and replies

Post a comment


<< Previous: Basic improvements fr...>> Next: Performance improvements


  Post a comment Post a comment   See comments See comments (1)   Trackbacks (0)  
  All package blogs All package blogs   Matrix new Matrix new   Blog Matrix new package blog   RSS 1.0 feed RSS 2.0 feed   Blog Future development.