MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
Loading...
Searching...
No Matches
fuse.hpp File Reference

Namespaces

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

Functions

template<typename Dest, typename Expr>
bool mtl::detail::fused_reads_dest_elsewhere (const Dest &dest, const Expr &expr)
 Whether writing expr into dest element by element could read an element of dest other than the one being written (issue 887): the test dense2D's operator= makes (#824).
template<typename Dest, typename Expr>
mat::dense2D< typename Dest::value_type > mtl::detail::fused_evaluate (const Expr &expr)
 expr evaluated into a dense matrix of Dest's value type.
template<typename Dest, Matrix Expr>
requires traits::is_expression_v<Expr>
void mtl::fused_assign (Dest &dest, const Expr &expr)
 Evaluate a matrix expression into a pre-allocated target: dest = expr.
template<typename Dest, Vector Expr>
requires (traits::is_expression_v<Expr> && !Matrix<Expr>)
void mtl::fused_assign (Dest &dest, const Expr &expr)
 Evaluate a vector expression into a pre-allocated target: dest = expr.
template<typename Dest, Matrix Expr>
requires traits::is_expression_v<Expr>
void mtl::fused_plus_assign (Dest &dest, const Expr &expr)
 Evaluate a matrix expression and add to target: dest += expr In place unless expr reads dest elsewhere (see fused_assign): then the sum is formed from a temporary of expr.
template<typename Dest, Vector Expr>
requires (traits::is_expression_v<Expr> && !Matrix<Expr>)
void mtl::fused_plus_assign (Dest &dest, const Expr &expr)
 Evaluate a vector expression and add to target: dest += expr.