On 01/04/2011 12:46 AM, Bo Berglund wrote:
2) The fortran code failed to translate when it turned out that
Fortran could change the type of a matrix multiplication depending on
the dimensions of the two input matrices.
With Fortran in a function, the array idex bounds can be obtained from
function parameters.
This can be overcome by using dynamic arrays in Pascal.
We (i.e. my son) once created a library with some matrix
calculation/solving functions using dynamic arrays as vector and Matrix
types.
This worked out very nicely, e.g. as Pivoting results in very fast
pointer operations that avoids moving the values around.
-Michael
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus