View main.cpp
int main(){ | |
auto s1 = ub::test::tensor_static_container<float,ub::static_extents<1,2,3>, ub::first_order>{}; | |
auto s2 = ub::test::tensor_static_container<float,ub::static_extents<1,2,3>, ub::first_order>{1}; | |
std::cout<<s1.rank()<<'\n'; | |
return 0; | |
} |
View main.cpp
// Wraps the standard transpose | |
template<typename _Value, typename _Layout> | |
struct StandardTranspose | |
{ | |
using Value = _Value; | |
using Layout = _Layout; | |
using Array = fhg::tensor<Value, Layout>; | |
static constexpr auto name = "transpose"; | |
static auto call(Array const& a, std::vector<std::size_t> const& phi) { return a.transpose(phi); } |