C++ Logo


Advanced search

[std-proposals] Interest in Linear Algebra functionality

From: Richard W Hornbuckle <longhornbuckle_at_[hidden]>
Date: Sun, 16 Apr 2023 18:44:31 -0500
I’m aware there are other efforts attempting to tackle different aspects of linear algebra support. Some of them are acknowledged and discussed in the readme.

I wanted to explore what mathematical vectors, matrices, and tensors could look like in C++ built from the ground up with C++23 mdspan and C++20 concepts in mind. I felt like what I put together might be worth sharing. The implementation is located here: https://github.com/longhornbuckle/linalg. The repository provides reasonably tested implementations for static, dynamic allocated, and non-owning views of vectors, matrices, and tensors with some basic functionality. It additionally provides a number of related concepts. The repository includes backports to C++20 and C++17.

A number of design decisions and questions are included in the readme.

If there is interest, I would put together a proposal.

Received on 2023-04-16 23:44:44