linalg icon indicating copy to clipboard operation
linalg copied to clipboard

linalg.h is a single header, public domain, short vector math library for C++

Results 6 linalg issues
Sort by recently updated
recently updated
newest added

For example: template struct vec { // ... vec projected_onto(vec const& v) { return (dot(*this,v)/dot(v,v)) * v;} vec rejection_from(vec const& v) { return *this - this->projected_onto(v); } // ... }...

`using namespace linalg::ostream_overloads` sometimes does not work as planed. For example doctest library(https://github.com/onqtam/doctest) does not found operator defined like this. It might be a good idea to change it in...

Presently, `vec` is only defined for `M` equal to 2, 3, or 4, and `mat` is only defined for `M` and `N` equal to 2, 3, or 4. This is...

enhancement

Hi, I am not sure if I am missing something so please correct me if there already is an easier way to do this. Here's what I want to do:...

This is to fix compilation errors I had on Debian 12.2 ` In file included from test-linalg.h:3, from linalg-test.cpp:2: thirdparty/doctest.h:4032:47: error: size of array ‘altStackMem’ is not an integral constant-expression...