MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
mtl::detail::kron_value< TA, TB, typename > Struct Template Reference

kron's element type: the common type of the operands' value types, as in dot, axpy and the other mixed-type operations (#694). More...

#include <kron.hpp>

Public Types

using type = TA

Detailed Description

template<typename TA, typename TB, typename = void>
struct mtl::detail::kron_value< TA, TB, typename >

kron's element type: the common type of the operands' value types, as in dot, axpy and the other mixed-type operations (#694).

Taking A's value type alone narrowed a mixed product: kron(dense2D<int>{2}, dense2D<double>{0.25}) gave 0. A pair of custom types with no std::common_type keeps A's value type, as before, rather than failing to compile.

Member Typedef Documentation

◆ type

template<typename TA, typename TB, typename = void>
using mtl::detail::kron_value< TA, TB, typename >::type = TA

The documentation for this struct was generated from the following file:
  • /home/runner/work/mtl5/mtl5/include/mtl/operation/kron.hpp