Re: matrix operations

2019-11-27 Thread jmh530 via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 16:16:04 UTC, René Heldmaier wrote: Hi, I'm looking for some basic matrix/vector operations and other numeric stuff. I spent quite a lot time in reading through the mir documentation, but i kinda miss the bigger picture. I'm not a Python user btw. (I know

Re: matrix operations

2019-11-27 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 16:16:04 UTC, René Heldmaier wrote: Hi, I'm looking for some basic matrix/vector operations and other numeric stuff. I spent quite a lot time in reading through the mir documentation, but i kinda miss the bigger picture. I'm not a Python user btw. (I know

Re: Exceptions on Windows being "swallowed"

2019-11-27 Thread DanielG via Digitalmars-d-learn
Not sure if related to OP's issue, but quite often on Windows I get mystery crashes with no stack trace, so I typically use WinDbg Preview (modern version of WinDbg) to locate the problem. Seems to work every time.

matrix operations

2019-11-27 Thread René Heldmaier via Digitalmars-d-learn
Hi, I'm looking for some basic matrix/vector operations and other numeric stuff. I spent quite a lot time in reading through the mir documentation, but i kinda miss the bigger picture. I'm not a Python user btw. (I know C,C++,C#,Matlab..). I have also looked at the documentation of the

Re: Simple casting?

2019-11-27 Thread Timon Gehr via Digitalmars-d-learn
On 27.11.19 11:43, ixid wrote: On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote: import std; void main(){     int[] x=[1,1,2,3,4,4];     int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array;     writeln(y); } This stuff is a nightmare for less experienced users like myself, I wish

Re: How to create DDoc for string mixin generated functions?

2019-11-27 Thread ParticlePeter via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 19:41:26 UTC, Adam D. Ruppe wrote: On Tuesday, 26 November 2019 at 19:27:55 UTC, ParticlePeter wrote: In may case I use the string mixin to forward outer struct property calls to members of an inner struct. Did you try opDispatch btw? It might be simpler to

Re: What is the simplest way to download and set path variables for D compilers when using AppVeyor

2019-11-27 Thread kinke via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 19:02:08 UTC, Michael Brockus wrote: I am wondering if you guys would know what maybe the simplest way to have D working on AppVeyor Probably something like this: https://github.com/kinke/ldc/blob/e484486364f6765cb35d9d2961b05647ae78552b/appveyor.yml#L67-L69

Re: matrix operations

2019-11-27 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 16:16:04 UTC, René Heldmaier wrote: Hi, I'm looking for some basic matrix/vector operations and other numeric stuff. I spent quite a lot time in reading through the mir documentation, but i kinda miss the bigger picture. I'm not a Python user btw. (I know

Re: static assert(version(x)) ?

2019-11-27 Thread Johan Engelen via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 12:53:02 UTC, Jonathan M Davis wrote: On Tuesday, November 26, 2019 4:29:18 AM MST S.G via Digitalmars-d-learn wrote: On Tuesday, 26 November 2019 at 10:24:00 UTC, Robert M. Münch wrote: > How can I write something like this to check if any of a set > of

What is the simplest way to download and set path variables for D compilers when using AppVeyor

2019-11-27 Thread Michael Brockus via Digitalmars-d-learn
I am wondering if you guys would know what maybe the simplest way to have D working on AppVeyor because I already have a solution for both CircleCi, Travis-Ci and wish to expand to windows. Also as tip for Meson build users Ninja is available on PyPi meaning that you can have a simple command

Re: matrix operations

2019-11-27 Thread René Heldmaier via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 16:35:40 UTC, bachmeier wrote: I do have all that for my own use. I've never bothered to turn it into something others could use because I love the garbage collector, but that's a turnoff for others. But I'm more than happy to share if you're really

Re: Simple casting?

2019-11-27 Thread ixid via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 14:40:56 UTC, Timon Gehr wrote: On 27.11.19 11:43, ixid wrote: On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote: import std; void main(){     int[] x=[1,1,2,3,4,4];     int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array;     writeln(y); } This

Re: how to implement a function in a different D source file

2019-11-27 Thread Omar via Digitalmars-d-learn
Oh I see, it seems like the answers I'm getting imply that you have the option of a pure interface or pure implementation but not a mix. I see how I could elaborate more on what I was asking about. As long as you only import the file but not try to compile the same module twice right ? So

Re: how to implement a function in a different D source file

2019-11-27 Thread Paul Backus via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 23:32:34 UTC, Omar wrote: this forks into a second question but I think still fits this thread as it could just be seen as another form of the same question. Is there a way to define some functions in the body of a class definition, and define others outside

Re: matrix operations

2019-11-27 Thread bachmeier via Digitalmars-d-learn
On Wednesday, 27 November 2019 at 18:10:36 UTC, René Heldmaier wrote: On Wednesday, 27 November 2019 at 16:35:40 UTC, bachmeier wrote: I do have all that for my own use. I've never bothered to turn it into something others could use because I love the garbage collector, but that's a turnoff

Re: Simple casting?

2019-11-27 Thread ixid via Digitalmars-d-learn
On Tuesday, 26 November 2019 at 16:33:06 UTC, Timon Gehr wrote: import std; void main(){ int[] x=[1,1,2,3,4,4]; int[][] y=x.chunkBy!((a,b)=>a==b).map!array.array; writeln(y); } This stuff is a nightmare for less experienced users like myself, I wish there were a single function