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

Namespaces

namespace  mtl
namespace  mtl::generators

Functions

template<typename T = double>
auto mtl::generators::companion (const std::vector< T > &coeffs)
 Companion matrix for polynomial p(x) = x^n + c[n-1]*x^{n-1} + ... + c[0].