[Lazarus] Project conversion Delphi -> FreePascal: success!
Michael Schnell
mschnell at lumino.de
Tue Jan 4 11:12:50 CET 2011
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
More information about the Lazarus
mailing list