Open awf opened 3 years ago
And we may want to incorporate ideas from #849, e.g.
template <class T>
struct ks_tensor<T> {
ks::Tensor<1, T> t1;
ks::Tensor<2, T> t2;
ks::Tensor<3, T> t3;
ks::Tensor<4, T> t4;
Py_Object py_handle;
};
or messy and tricksy
template <class T>
struct ks_tensor<T> {
ks::Tensor<7, T> t;
Py_Object py_handle;
template<int n>
ks::Tensor<n, T>& get_t() { return get_t<n+1>()[0]; }
template<>
ks::Tensor<7, T>& get_t() { return t; }
};
AB#19174
User writes
Which calls this stub
and later, when we compile, this happens: