library to solve the system of linear equations

Yura yuriy.min at gmail.com
Fri Oct 14 17:41:42 UTC 2022


Dear All,

I am very new to D, and it has been a while since I coded in 
anything than Python. I am using just notepad along with the gdc 
compiler.

At the moment I need to solve the system of liner equations:

A00*q0 + A01*q1 + A02*q2 ... = -V0
A10*q0 + A11*q1 + A12*q2 ... = -V1
...

I have all my Aij coefficients in the double [][] A array, and V 
numbers in the array double [] b.

Is there any quick D solution for it? Something like in python 
one can do:

numpy.linalg.solve(a,b) ?

Quick web search revealed a few scientific libraries for D like 
Mir or lubek.

I am working under Ubuntu 18.04 and compiling my code like " gdc 
solv.d"

Could someone please provide a quick d solution for this, 
including details on how to install the library & link it to the 
code? I do not need anything advanced, just the easiest option.

I am sorry for too basic question, just want to check my idea 
quickly. Thank you!



More information about the Digitalmars-d-learn mailing list