NVIDIA / MatX

An efficient C++17 GPU numerical computing library with Python-like syntax

Home Page:https://nvidia.github.io/MatX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEA] Add support for mdspan

cliffburdick opened this issue · comments

mdspan is an upcoming feature in C++23 with two main changes:

  1. operator[] for multi-dimensional arrays
  2. Indexing and types for multi-dimensional arrays

While 1 requires a new C++ compiler, 2 has been included the CCCL recently. For this feature we can add partial support for the second part by taking in mdspan types into make_tensor calls to translate to what we have.