nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
matfun.hpp
Go to the documentation of this file.
1// src/builtin/include/nk/builtin/matfun.hpp
2//
3// Pure C++ Matrix functions and integer division (MATLAB parity).
4#pragma once
5
6#include <memory_resource>
7#include <string>
8#include <nk/value/value.hpp>
9#include <nk/value/span.hpp>
10
11namespace nk::builtin {
12
15
16
23
24// ── Integer Division ────────────────────────────────────────────────────────
25
40Value idivide(const Value &a, const Value &b, const std::string &mode = "fix", std::pmr::memory_resource *mr = nullptr);
41
42
44} // namespace nk::builtin
Core MATLAB-compatible multidimensional array and scalar value type.
Definition value.hpp:61
Value idivide(const Value &a, const Value &b, const std::string &mode="fix", std::pmr::memory_resource *mr=nullptr)
Integer division with specified rounding mode (idivide(A, B, opt)).