Recent

Author Topic: mrMath matrix library  (Read 1354 times)

Alextp

  • Hero Member
  • *****
  • Posts: 762
    • UVviewsoft
mrMath matrix library
« on: November 04, 2018, 12:09:20 pm »
https://github.com/mikerabat/mrmath
It supports FPC. It has classes for matrix handling optimized in ASM.

Quote
FreePascal support has been added for both x86 and x64 windows platforms.
You find a unit test project in the "Test" folder called MathUtilsTestsFPC.lpr

Thaddy

  • Hero Member
  • *****
  • Posts: 7349
Re: mrMath matrix library
« Reply #1 on: November 04, 2018, 12:39:50 pm »
Correction: "optimized" Intel/amd ASM, and only in the context of Windows and Limited linuxes on Intel. So the assembler optimizations are utterly useless cross-platform.
Also: TASMNativeInt? FPC already has a type for that: OpaquePointer (from 3.2)

Otherwise looks good.
« Last Edit: November 04, 2018, 12:58:40 pm by Thaddy »
Ad Brexinitum (can't help it)

apeoperaio

  • Full Member
  • ***
  • Posts: 135
Re: mrMath matrix library
« Reply #2 on: December 10, 2018, 09:48:30 am »
mrmath is a very useful library for fast matrix manipulation. I am actually using it on win, linux, mac.

VTwin

  • Hero Member
  • *****
  • Posts: 560
  • Former Turbo Pascal 3 user
Re: mrMath matrix library
« Reply #3 on: December 11, 2018, 04:18:36 am »
This sounds great, thanks. Would appreciate confirmation that it is cross platform.
“Talk is cheap. Show me the code.” Linus Torvalds

Lazarus 2.0.0RC3 svn 6006: macOS 10.11.6 (64 bit Cocoa)
Lazarus 1.8.4: Win 7 (64 bit) & Ubuntu 16.04.3 (64 bit) on VBox

VTwin

  • Hero Member
  • *****
  • Posts: 560
  • Former Turbo Pascal 3 user
Re: mrMath matrix library
« Reply #4 on: December 11, 2018, 04:25:16 am »
Is this also 64 bit?
“Talk is cheap. Show me the code.” Linus Torvalds

Lazarus 2.0.0RC3 svn 6006: macOS 10.11.6 (64 bit Cocoa)
Lazarus 1.8.4: Win 7 (64 bit) & Ubuntu 16.04.3 (64 bit) on VBox

mikerabat

  • New member
  • *
  • Posts: 25
Re: mrMath matrix library
« Reply #5 on: January 17, 2019, 02:18:40 pm »
it's for 32/64 bit and is cross platform (Win, Linux, Mac).

Just recently I overhauled the 32bit part to have faster function calls (assembler call directive).

There should be a few test projects for Win, Mac and Linux ;)

mikerabat

  • New member
  • *
  • Posts: 25
Re: mrMath matrix library
« Reply #6 on: January 17, 2019, 02:20:33 pm »
By The way... TASMNativeInt was introduced for Delphi platforms that do not have a NativeInt ;)

mikerabat

  • New member
  • *
  • Posts: 25
Re: mrMath matrix library
« Reply #7 on: January 20, 2019, 07:49:28 am »
Actually I can confirm it's compatible with x86/x64 Win/Linux/Mac
platforms.

Thaddy

  • Hero Member
  • *****
  • Posts: 7349
Re: mrMath matrix library
« Reply #8 on: January 20, 2019, 11:19:20 am »
Yes, but it is a pity it doesn't support my main platform which is 32/64 arm-linux.... :D

Otherwise it does what is says on the tin... Good job..
Ad Brexinitum (can't help it)