nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
wkeep_wextend.hpp
Go to the documentation of this file.
1
3// toolboxes/wavelet/include/nk/wavelet/dwt/wkeep_wextend.hpp
4//
5// Wavelet Toolbox boundary helpers: wkeep (keep central/edge part) and
6// wextend (signal extension) — declared as they are lifted from
7// adapter-only to a public C++ API.
8
9#pragma once
10
11#include <memory_resource>
12#include <string>
13#include <nk/value/value.hpp>
14
15namespace nk::wavelet {
16
19
20
41Value wkeep(const Value &x, const Value &len,
42 const Value &opt = Value::Empty,
43 std::pmr::memory_resource *mr = nullptr);
44
66Value wextend(const Value &type, const std::string &mode, const Value &x,
67 long long lf, const std::string &side = "b",
68 std::pmr::memory_resource *mr = nullptr);
69
70
72} // namespace nk::wavelet
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
static const Value Empty
MATLAB-style empty matrix sentinel — a 0×0 DOUBLE value.
Definition value.hpp:136
Value wkeep(const Value &x, const Value &len, const Value &opt=Value::Empty, std::pmr::memory_resource *mr=nullptr)
Keep part of a vector / a sub-matrix (y = wkeep(x, len, opt)).
Value wextend(const Value &type, const std::string &mode, const Value &x, long long lf, const std::string &side="b", std::pmr::memory_resource *mr=nullptr)
Extend a signal at its boundaries (y = wextend(type, mode, x, lf, side)).