nk
1.0.0
C++ Numerical Computing Runtime
Toggle main menu visibility
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
11
namespace
nk::builtin {
12
15
16
23
24
// ── Integer Division ────────────────────────────────────────────────────────
25
40
Value
idivide
(
const
Value
&a,
const
Value
&b,
const
std::string &mode =
"fix"
, std::pmr::memory_resource *mr =
nullptr
);
41
42
44
}
// namespace nk::builtin
nk::Value
Core MATLAB-compatible multidimensional array and scalar value type.
Definition
value.hpp:61
nk::builtin::idivide
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)).
src
builtin
include
nk
builtin
matfun.hpp
Generated by
1.17.0