Post AwQKuYFDG5nbv9g7CS by [email protected] | |
More posts by [email protected] | |
Post #AwQKuXzcC5K38mNet6 by [email protected] | |
0 likes, 0 repeats | |
I am excited to share this new single-header C library I have been working on f… | |
Post #AwQKuY7lhlqPY4CAb2 by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G 👆 cc @thephd would be nice if this sort of code would work in st… | |
Post #AwQKuYFDG5nbv9g7CS by [email protected] | |
0 likes, 0 repeats | |
@floooh @Mattias_G The whole point of adding vectors is to give them operators … | |
Post #AwQKuYMIpjTEH8zmFc by [email protected] | |
0 likes, 0 repeats | |
@thephd @Mattias_G > but decides that 3-size vectors and 3x3 matrices are th… | |
Post #AwQKuYT2QgrGc299kW by [email protected] | |
0 likes, 0 repeats | |
@thephd @Mattias_G...but this size-discussion is essentially part of the proble… | |
Post #AwQKuYWaDVh4n1nzH6 by [email protected] | |
0 likes, 0 repeats | |
Here is the library: https://github.com/mattiasgustavsson/libs/blob/main/docs/v… | |
Post #AwQKuYa80KWsy1Song by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G Huh? Most math code definitely uses arbitrary sized … | |
Post #AwQKuYhDZyCVK0mTqq by [email protected] | |
0 likes, 0 repeats | |
@uecker @thephd @Mattias_G I bet most of those hypothetical 'math people… | |
Post #AwQKuYmtEsjnbbR0gy by [email protected] | |
0 likes, 0 repeats | |
@floooh @uecker @thephd @Mattias_G the reason that it makes sense that the vect… | |
Post #AwQKuYtGr9qFvOQ6dc by [email protected] | |
0 likes, 0 repeats | |
@dotstdy @floooh @thephd @Mattias_G Can you explain what you mean by "fun… | |
Post #AwQKuYzeTQwiFBPCaG by [email protected] | |
0 likes, 0 repeats | |
@uecker @floooh @thephd @Mattias_G i mean, fundamentally different is perhaps o… | |
Post #AwQKuZ625i3AYyOIWu by [email protected] | |
0 likes, 0 repeats | |
@dotstdy @floooh @thephd @Mattias_G General linear algebra is much harder pro… | |
Post #AwQKuZClgfRCtrXg1o by [email protected] | |
0 likes, 0 repeats | |
@uecker @floooh @thephd @Mattias_G yeah i mean in the sense that you *probably*… | |
Post #AwQKuZQarGUrak0iZs by [email protected] | |
0 likes, 0 repeats | |
Even though it is primarily designed as a C library, I have also tried to make … | |
Post #AwQKuZfpwagqM18tKy by [email protected] | |
0 likes, 0 repeats | |
@floooh @Mattias_G That being said: it's far from my first thing to do, so … | |
Post #AwQKuZsbB8tkzb75EG by [email protected] | |
0 likes, 0 repeats | |
It has a large set of functions, as it attempts to implement most of what you g… | |
Post #AwQKuaJtXejUMFssm8 by [email protected] | |
0 likes, 0 repeats | |
It is not trying to be the most optimized library, not using any SIMD intrinsic… | |
Post #AwQKuamFqDPxmD9Wym by [email protected] | |
0 likes, 0 repeats | |
It's been tested on windows, mac, linux and web-assembly, using msvc, clang… | |
Post #AwQKubEGA5orB4FtdA by [email protected] | |
0 likes, 0 repeats | |
If you're looking for a vector math lib for C (or C++) check it outhttps://… | |
Post #AwQKvkRrMzsw3oAGBc by [email protected] | |
0 likes, 0 repeats | |
@dotstdy @floooh @thephd @Mattias_G There is a lot code where BLAS is not the i… | |
Post #AwQKvlTfXkvVFi1De4 by [email protected] | |
0 likes, 0 repeats | |
@dotstdy @floooh @thephd @Mattias_G Except that it mostly moved to GPU... | |
Post #AwUf96XXJwT43YJ0UK by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G I was just wondering a bit about your definition of… | |
Post #AwUf96g2oJH0TwHnkW by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G The vector length discussions always reminds me abou… | |
Post #AwUf96m4Ru5smd6c8u by [email protected] | |
0 likes, 0 repeats | |
@uecker @thephd @Mattias_G now you sound like a C++ programmer... e.g. that sor… | |
Post #AwUfAAevUVax7aGqAa by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G Far off the mark. I build real-time numerical code… | |
Post #AwUfAC0EUmETHxFN1E by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G But it is true that I wrote C++ expression template … | |
Post #AwUfAxyo7Nc45QwuSe by [email protected] | |
0 likes, 0 repeats | |
@uecker @thephd @Mattias_G in any case, these are the Clang extensions that I w… | |
Post #AwUfB7vH9MjIvNNELQ by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G I guess the operators don't work in C mode without the Clang vec… | |
Post #AwUfB81ImxYBE4C2jo by [email protected] | |
0 likes, 0 repeats | |
@floooh @Mattias_G will operators work in C with clang extension(s)? | |
Post #AwUfB87gPEedXrB8gS by [email protected] | |
0 likes, 0 repeats | |
@daniel_collin @floooh yeah, for vector types, you automatically get support fo… | |
Post #AwUfB8E41Vl5reAEd6 by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G @floooh that is pretty neat, but sucks it's clang only :) | |
Post #AwUfB8KRdmrYBR9KZk by [email protected] | |
0 likes, 0 repeats | |
@daniel_collin @Mattias_G Tbh, the idea of simply dropping MSVC support has bee… | |
Post #AwUfBkCGqcu3d5cL6u by [email protected] | |
0 likes, 0 repeats | |
@floooh @daniel_collin @Mattias_G we needn't be held back by msvc any longe… | |
Post #AwUfBs9NHHL8IQK8hs by [email protected] | |
0 likes, 0 repeats | |
@floooh @Mattias_G Yeah :) It's too bad that clang-cl is only an optional i… | |
Post #AwUfC80kJ7wdUIPTTk by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G @daniel_collin btw, I wonder how much overlap there is between the C… | |
Post #AwUfCGeOBcPQHZ1FNg by [email protected] | |
0 likes, 0 repeats | |
@floooh @Mattias_G talking about vectors I really.. really hate that MSVC doesn… | |
Post #AwUfCP5GpYfIRFepOK by [email protected] | |
0 likes, 0 repeats | |
@daniel_collin @floooh I've recently started evaluating clang for building … | |
Post #AwUfCPBIT9UAjwTdmi by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G @floooh Yeah, Every time I look at some code-gen it's very rare … | |
Post #AwUfCeS9gksq6ZToe0 by [email protected] | |
0 likes, 0 repeats | |
@floooh Yes, the operators for C are only enabled if compiling in clang and def… | |
Post #AwUfCeYBKLhiPGId2O by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G No SIMD support is totally fine, since the CPU side math code usuaul… | |
Post #AwUfCvHR7rPWIFaznU by [email protected] | |
0 likes, 0 repeats | |
@floooh yeah, that was my reasoning as well. and if you do want bulk operations… | |
Post #AwUfGsgkhgEfPiKAls by [email protected] | |
0 likes, 0 repeats | |
@Mattias_G FWIW: I have some similar stuff to this but internally only uses vec… | |
Post #AwV2L69mruPDHyswQS by [email protected] | |
0 likes, 0 repeats | |
@floooh @thephd @Mattias_G 99% of real-world vector math that you're encoun… |