|
MTL5 -- Matrix Template Library C++ API
mtl:: -- C++20 header-only linear algebra for mixed-precision algorithm design
|
#include <cstddef>#include <limits>#include <type_traits>#include <mtl/concepts/scalar.hpp>#include <mtl/math/accumulator_traits.hpp>#include <mtl/detail/wrapping_arithmetic.hpp>#include <mtl/concepts/collection.hpp>#include <mtl/detail/thread_pool.hpp>#include <mtl/interface/dispatch_traits.hpp>#include <mtl/simd/algorithm.hpp>Namespaces | |
| namespace | mtl |
Functions | |
| template<typename Accumulator = void, Scalar S, MutableCollection C> | |
| void | mtl::scale (const S &alpha, C &c) |
| In-place scale: c[i] *= alpha. | |
| template<typename Accumulator = void, Scalar S, Collection C> | |
| auto | mtl::scaled (const S &alpha, const C &c) |
| Returns a scaled copy of a vector. | |