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

Go to the source code of this file.

Functions

void nk::runtime::registerCellsRuntime (Engine &engine)
void nk::runtime::registerCellfunCallbackBuiltin (Engine &engine)
Value nk::runtime::cell (size_t n, std::pmr::memory_resource *mr=nullptr)
 Square cell array (c = cell(n)).
Value nk::runtime::cell (size_t rows, size_t cols, std::pmr::memory_resource *mr=nullptr)
 Rectangular cell array (c = cell(rows, cols)).
Value nk::runtime::cell (size_t rows, size_t cols, size_t pages, std::pmr::memory_resource *mr=nullptr)
 3-D cell array (c = cell(rows, cols, pages)).
Value nk::runtime::cellfun (FnHandle fn, const Value &c, bool uniformOutput, std::pmr::memory_resource *mr=nullptr)
 Apply a callback to each cell (y = cellfun(fn, c, uniformOutput)).
Value nk::runtime::num2cell (const Value &x, std::pmr::memory_resource *mr=nullptr)
 Wrap each element in a scalar cell (c = num2cell(A)).
Value nk::runtime::cell2mat (const Value &c, std::pmr::memory_resource *mr=nullptr)
 Concatenate cells into a matrix (A = cell2mat(c)).
Value nk::runtime::iscellstr (const Value &c, std::pmr::memory_resource *mr=nullptr)
 Test whether a cell array holds only char rows (tf = iscellstr(c)).
Value nk::runtime::cellstr (const Value &x, std::pmr::memory_resource *mr=nullptr)
 Convert to cell-of-strings (c = cellstr(x)).
Value nk::runtime::mat2cell (const Value &x, const Value &rowSizes, const Value &colSizes=Value::Empty, std::pmr::memory_resource *mr=nullptr)
 Split a matrix into a cell array of blocks (c = mat2cell(A, R, C)).