library to solve the system of linear equations
Sergey
kornburn at yandex.ru
Fri Oct 14 18:37:00 UTC 2022
On Friday, 14 October 2022 at 17:41:42 UTC, Yura wrote:
> 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
> ...
>
> 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!
Firstly I will suggest to install dub - the D package manager. It
will be easier to isntall other libraries using it.
Install openblas in your Ubuntu system. After that you can create
a new folder and type in terminal
```
dub init
```
The main part will be about "dependencies". Type "lubeck".
After that you could check the example of the simple program here:
https://github.com/kaleidicassociates/lubeck/blob/master/example/source/app.d
It is exactly solving simple system of linear equations.
Link to the package where you can find additional details and
documentation: https://code.dlang.org/packages/lubeck
More information about the Digitalmars-d-learn
mailing list