romeric / Fastor

A lightweight high performance tensor algebra framework for modern C++
MIT License
752 stars 70 forks source link

Row and column extractions on 2D tensors should use fixed views #174

Open romeric opened 8 months ago

romeric commented 8 months ago

We currently use dynamic views while extracting rows and columns of a 2D tensor

Tensor<double, 3, 4> A;
A(0, all)  --> TensorViewExpr<A>

this make it unnecessarily impossible to construct tensors of the right shape at compile time when we already know this info which is Tensor<double,4> in this case.

romeric commented 8 months ago

Related issue #157