BayesWitnesses / m2cgen

Transform ML models into a native code (Java, C, Python, Go, JavaScript, Visual Basic, C#, R, PowerShell, PHP, Dart, Haskell, Ruby, F#, Rust) with zero dependencies
MIT License
2.8k stars 241 forks source link

Add Fortran language support #577

Open AaronDavidSchneider opened 1 year ago

AaronDavidSchneider commented 1 year ago

This is a PR that aims to add fortran language support.

Todo:

Random note: The math functions are transcribed from their C# counterpart using chatGPT. I am excited to see if they are actually correct. Edit: Turns out, that most of it was correct. Only some minor changes were needed. Exciting future.

Closes #575

AaronDavidSchneider commented 1 year ago

This PR is ready to go as far as it concerns me.

I have tested it additionally using the test_e2e framework, where all tests pass.

I am looking forward to the review!

AaronDavidSchneider commented 1 year ago

Kindly pinging @izeigerman and @StrikerRUS