MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
kron.hpp File Reference
#include <type_traits>
#include <mtl/concepts/matrix.hpp>
#include <mtl/mat/dense2D.hpp>

Classes

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). More...
struct  mtl::detail::kron_value< TA, TB, std::void_t< std::common_type_t< TA, TB > > >

Namespaces

namespace  mtl
namespace  mtl::detail
 mat*vec multiply into pre-allocated y: y = A * x.

Functions

template<Matrix MA, Matrix MB>
auto mtl::kron (const MA &A, const MB &B)
 Kronecker product: C = A (x) B, where C(i*rb+p, j*cb+q) = A(i,j)*B(p,q).