[fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Bo Berglund
I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions: MATMUL multiplies two matrices (arrays) and returns the result. TRANSPOSE reorders the array elemsnts in some predefined way. The call in the Fortran

[fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Bo Berglund
I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions: MATMUL multiplies two matrices (arrays) and returns the result. TRANSPOSE reorders the array elemsnts in some predefined way. The call in the Fortran

Re: [fpc-pascal] Posting to the list via GMAIL

2010-10-09 Thread Jonas Maebe
On 30 Sep 2010, at 20:50, Bo Berglund wrote: I asked that this group also be made working for posting via the news server, but in this case Lars' reply was: This group is also backed by a mailing list and in this case the mail list email address on GMANE seems to be OK. But for some

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Honza
2010/10/9 Bo Berglund bo.bergl...@gmail.com: So I need to get hold of two Delphi functions: function matmul(X, Y: array of double): array of double; and function transpose(X: array of double): array of double; Where can I find such functions? I am not a matematician myself so I don't know

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Michael Van Canneyt
You may want to look at the matrix.pp unit included in the rtl. It contains many matrix operations. Michael. On Sat, 9 Oct 2010, Bo Berglund wrote: I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions:

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Reimar Grabowski
On Sat, 9 Oct 2010 14:42:47 +0200 Bo Berglund bo.bergl...@gmail.com wrote: Where can I find such functions? I am not a matematician myself so I don't know what these functions really do... Take a look here: http://www.j3d.org/matrix_faq/matrfaq_latest.html R. -- A: Because it messes up the

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Paulo Costa
On 09/10/2010 06:59, Bo Berglund wrote: I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions: MATMUL multiplies two matrices (arrays) and returns the result. TRANSPOSE reorders the array elemsnts in some

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Adriaan van Os
Bo Berglund wrote: I am translating a bunch of Fortran functions to FPC and I have now come across a problem with a couple of built-in Fortran90 functions: Matrix functions can be implemented efficiently using SSE, see e.g. http://www.cortstratton.org/articles/OptimizingForSSE.php.

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Reimar Grabowski
On Sat, 09 Oct 2010 16:40:12 +0200 Adriaan van Os f...@microbizz.nl wrote: Matrix functions can be implemented efficiently using SSE, see e.g. http://www.cortstratton.org/articles/OptimizingForSSE.php. FPC can generate the SSE instructions for you on compilation. My tests showed that this is

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread David W Noon
On Sat, 9 Oct 2010 07:59:26 +0200, Bo Berglund wrote about [fpc-pascal] Optimized matrix multiplication functions for pascal?: [snip] Where can I find such functions? They are available in a library named LAPACK. You can find downloads by doing a Google search on this name. It is coded in

Re: [fpc-pascal] Optimized matrix multiplication functions for pascal?

2010-10-09 Thread Adriaan van Os
David W Noon wrote: On Sat, 9 Oct 2010 07:59:26 +0200, Bo Berglund wrote about [fpc-pascal] Optimized matrix multiplication functions for pascal?: [snip] Where can I find such functions? They are available in a library named LAPACK. You can find downloads by doing a Google search on this

[fpc-pascal] Re: Posting to the list via GMAIL

2010-10-09 Thread Bo Berglund
On 30 Sep 2010, at 20:50, Bo Berglund wrote: I asked that this group also be made working for posting via the news server, but in this case Lars' reply was: This group is also backed by a mailing list and in this case the mail list email address on GMANE seems to be OK. But for some

Re: [fpc-pascal] Re: Posting to the list via GMAIL

2010-10-09 Thread Jonas Maebe
On 09 Oct 2010, at 20:47, Bo Berglund wrote: On 30 Sep 2010, at 20:50, Bo Berglund wrote: Since I have no idea who the list admin is I post here in the hope that he/she may see my request to contact Lars and request that the news group is made postable Done. I tried this by replying

Re: [fpc-pascal] Re: Posting to the list via GMAIL

2010-10-09 Thread Vincent Snijders
2010/10/9 Bo Berglund bo.bergl...@gmail.com: So it seems like the GMANE maintainers have either not understood or not reconfigured this NG with the new setting. I suggest you keep an eye on http://gmane.org/info.php?group=gmane.comp.compilers.free-pascal.general The list is still marked

[fpc-pascal] fpc.cfg on windows

2010-10-09 Thread Bernd Kreuss
Hi, I cannot find any documentation on this: On Linux I can have my global fpc.config in /etc/fpc.cfg and it will also look for a config in ~/.fpc/fpc.cfg which is very convenient since I can put some unit search paths there that I don't want to specify in the Lazarus project file itself because

Re: [fpc-pascal] fpc.cfg on windows

2010-10-09 Thread Marco van de Voort
In our previous episode, Bernd Kreuss said: I cannot find any documentation on this: On Linux I can have my global fpc.config in /etc/fpc.cfg and it will also look for a config in ~/.fpc/fpc.cfg which is very convenient since I can put some unit search paths there that I don't want to

Re: [fpc-pascal] fpc.cfg on windows

2010-10-09 Thread Marco van de Voort
In our previous episode, Bernd Kreuss said: On Windows it looks in the dir of the compiler, as per documentation: http://www.freepascal.org/docs-html/user/usersu10.html#x24-310003.1.5 Would a feature request for making it search in the home directory make sense? It probably has its