library to solve the system of linear equations

Yura yuriy.min at gmail.com
Mon Oct 17 19:54:12 UTC 2022


Dear All, Thank you so much for your replies and hints! I got it 
working today. All the libraries are properly linked and the 
Equation solver runs smoothly.

The compilers turned out to be problematic though. The "Mir" 
library does not work with the Ubuntu 18.04 gdc and ldc 
compilers. I have managed to install the latest version dmd, and 
it works. But I suspect that the dmd compiler is not optimal in 
terms of performance. The question becomes whether it is possible 
to install the most recent ldc and gdc compilers on Ubuntu 18.04?

The good thing is that I have also managed to get this code 
working in parallel.

Thank you again!

On Saturday, 15 October 2022 at 13:11:04 UTC, Siarhei Siamashka 
wrote:
> On Friday, 14 October 2022 at 21:38:45 UTC, Yura wrote:
>> in the top of my el.d file I have:
>> ```D
>> /+dub.sdl:
>> dependency "mir-algorithm" version="~>3.16.12"
>> +/
>> import std.stdio;
>> import std.string;
>> import std.conv;
>> import std.exception : assertThrown;
>> import std.math;
>> import mir.ndslice;
>> ```
>>
>> however, when I try to compile it (gdc el.d) it gives me the 
>> following error message:
>>
>> el.d:11:8: error: module ndslice is in file 'mir/ndslice.d' 
>> which cannot be read
>>  import mir.ndslice;
>
> This all looks good, except for the `"gdc el.d"` part. A small 
> application contained in a single .d file can be run like a 
> script via `"dub el.d"`. This is explained at 
> https://dub.pm/advanced_usage.html
>
> For compiling highly optimized final binaries you can run `"dub 
> build --build=release --single --compiler=ldc2 el.d"` (to use 
> LDC) or `"dub build --build=release --single --compiler=gdc 
> el.d"` (to use GDC).




More information about the Digitalmars-d-learn mailing list