Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread luiz americo pereira camara
2015-07-07 10:10 GMT-03:00 Graeme Geldenhuys : > On 2015-07-07 13:36, Andrea Mauri wrote: > > mrmath actually works on MacOSX. why should be a big problem porting to > > linux? > > Indeed. If you limit the scope to x86 and amd64 CPU's then the port > shouldn't be too hard. Can you confirm is thes

Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread Andrea Mauri
Dear Graeme, yes, I need it just for x86 and amd64 CPU. It would be perfect if the actual thread implementation would be unified using fpc threads. Anyway my first goal is to have a fpc/lazarus implementation for windows and linux 32/64. Let me know, Andrea Il 07/07/2015 15:10, Graeme Gelden

Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread Graeme Geldenhuys
On 2015-07-07 13:36, Andrea Mauri wrote: > mrmath actually works on MacOSX. why should be a big problem porting to > linux? Indeed. If you limit the scope to x86 and amd64 CPU's then the port shouldn't be too hard. Can you confirm is these are the only CPU types you want to target? Andrea, I mig

Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread Andrea Mauri
Leledumbo has already demonstrated that the fact that mrmath is written in assembler is likely to be an insurmountable problem. If there were a version that was buildable (at least initially) without using assembler you might get somewhere. mrmath actually works on MacOSX. why should be a big

Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread Mark Morgan Lloyd
Andrea Mauri wrote: Dear all, I have been on holiday, since I have not seen any answer I try to post it again. Since I am not experienced with thread and actually I am involved in other projects I cannot work on it. I am evaluating to propose a bounty (150 euro. is is acceptable?) to make m

Re: [Lazarus] fast mathematical matrix operations

2015-07-07 Thread Andrea Mauri
Dear all, I have been on holiday, since I have not seen any answer I try to post it again. Since I am not experienced with thread and actually I am involved in other projects I cannot work on it. I am evaluating to propose a bounty (150 euro. is is acceptable?) to make mrmath fully compatibl

Re: [Lazarus] fast mathematical matrix operations

2015-06-09 Thread Andrea Mauri
Since I am not experienced with thread and actually I am involved in other projects I cannot work on it. I am evaluating to propose a bounty (150 euro) to make mrmath fully compatible with fpc (and working on win 32/64 linux 32/64..). How can I do that? I know that there is a page for bounties:

Re: [Lazarus] fast mathematical matrix operations

2015-06-09 Thread Michael Schnell
On 06/08/2015 03:29 PM, Andrea Mauri wrote: It is difficult for me ;-) since it uses two different thread implementations (one for windows and one for MAC OS). That is why I mentioned the Thread-pool implementation. It uses just TThread and hence is as cross-platform as fpc is. (In fact I su

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Graeme Geldenhuys
On 2015-06-08 14:29, Andrea Mauri wrote: > > It is difficult for me ;-) since it uses two different thread > implementations (one for windows and one for MAC OS). Both of those could possible be made obsolete by using FPC's cross-platform support - even for threading. So you could end up with on

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Andrea Mauri
I can't think why that would be difficult at all. It should be all non-gui code, maybe TThread usage. The only possible difficulty I can see is if ASM was used instead of pure Object Pascal. It is difficult for me ;-) since it uses two different thread implementations (one for windows and one

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Mehmet Erol Sanliturk
On Mon, Jun 8, 2015 at 1:57 AM, Andrea Mauri wrote: > Dear all, > > I am looking for units/packages to deal with numerical matrix manipulation > (typical double type numerical matrices). > I need code able to perform typical matrix operations (e.g. matrix > multiplication, inversion, determinant

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Mark Morgan Lloyd
Chris Kelling wrote: Pascal in general hasn't handled math in an effeceint way. Factorial is a prime example. I would assume that even a 2 dimensial matrix bigger than 10x10 would choke most processes. I don't think this has much to do with Pascal, it's entirely down to the selection of a suit

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread leledumbo
e a solution, albeit not the most beautiful since you have to mess with ifdefs. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-fast-mathematical-matrix-operations-tp4042505p4042511.html Sent from the Free Pascal - Lazarus m

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Henry Vermaak
On Mon, Jun 08, 2015 at 10:57:11AM +0200, Andrea Mauri wrote: > Dear all, > > I am looking for units/packages to deal with numerical matrix > manipulation (typical double type numerical matrices). > I need code able to perform typical matrix operations (e.g. matrix > multiplication, inversion, det

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Andrea Mauri
For this it's essential to use the multiple cores the hardware provides. So the task needs to be distributed to multiple threads. If you look at the code, you'll see that it does that. mrmath uses multiple threads and matrix operations are written in asm. It is the fastest solution I found

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Graeme Geldenhuys
On 2015-06-08 09:57, Andrea Mauri wrote: > any other suggestions? anyone interested in evaluating the possibility > to make mrmath usable under linux too? [disclaimer: I haven't looked at the mrmath code] I can't think why that would be difficult at all. It should be all non-gui code, maybe TThr

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Chris Kelling
Pascal in general hasn't handled math in an effeceint way. Factorial is a prime example. I would assume that even a 2 dimensial matrix bigger than 10x10 would choke most processes. It sounds like you would need something made for mathmatical processing like fortran or even lisp. However, takin

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Michael Van Canneyt
On Mon, 8 Jun 2015, Michael Schnell wrote: On 06/08/2015 10:57 AM, Andrea Mauri wrote: I need code able to perform typical matrix operations (e.g. matrix multiplication, inversion, determinant and so on) as fast as possible since I deal with big matrices (thousands of rows and columns). I

Re: [Lazarus] fast mathematical matrix operations

2015-06-08 Thread Michael Schnell
On 06/08/2015 10:57 AM, Andrea Mauri wrote: I need code able to perform typical matrix operations (e.g. matrix multiplication, inversion, determinant and so on) as fast as possible since I deal with big matrices (thousands of rows and columns). I need it for both windows and linux (32/64).

[Lazarus] fast mathematical matrix operations

2015-06-08 Thread Andrea Mauri
Dear all, I am looking for units/packages to deal with numerical matrix manipulation (typical double type numerical matrices). I need code able to perform typical matrix operations (e.g. matrix multiplication, inversion, determinant and so on) as fast as possible since I deal with big matrices