nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
conversions.hpp File Reference
#include <memory_resource>
#include <nk/value/value.hpp>
#include <tuple>

Go to the source code of this file.

Functions

Value nk::signal::zp2sos (const Value &zeros, const Value &poles, double gain, std::pmr::memory_resource *mr=nullptr)
 Convert zeros / poles / gain to a second-order-sections (SOS) matrix.
std::tuple< Value, double > nk::signal::zp2sosWithGain (const Value &zeros, const Value &poles, double gain, std::pmr::memory_resource *mr=nullptr, bool surplusAtOrigin=true)
 Convert zeros / poles / gain to (SOS, gain) — the two-output form.
Value nk::signal::tf2sos (const Value &b, const Value &a, std::pmr::memory_resource *mr=nullptr)
 Convert a transfer-function pair (b, a) to an SOS matrix.
std::tuple< Value, double > nk::signal::tf2sosWithGain (const Value &b, const Value &a, std::pmr::memory_resource *mr=nullptr)
 Two-output form of tf2sos: returns (sos, g).