6#include <memory_resource>
7#include <nk/value/value.hpp>
8#include <nk/value/span.hpp>
10namespace nk::builtin {
336Value any(
const Value &x,
int dim = 0, std::pmr::memory_resource *mr =
nullptr);
347Value all(
const Value &x,
int dim = 0, std::pmr::memory_resource *mr =
nullptr);
384inline Value transposeNC(
const Value &a, std::pmr::memory_resource *mr =
nullptr) {
return transpose(a, mr); }
Core MATLAB-compatible multidimensional array and scalar value type.
Value logicalOr(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_or.
Value all(const Value &x, int dim=0, std::pmr::memory_resource *mr=nullptr)
True if all elements of array are non-zero (y = all(x, dim)).
Value ge(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise greater than or equal (y = a >= b).
Value bitand_(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Bitwise AND of integer arrays (bitand(a, b)).
Value lt(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise less than (y = a < b).
Value eq(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise equality (y = a == b).
Value not_op(const Value &a, std::pmr::memory_resource *mr=nullptr)
Alias for logical_not (y = ~a).
Value or_op(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_or (y = a | b).
Value logical_not(const Value &a, std::pmr::memory_resource *mr=nullptr)
Elementwise logical NOT (y = ~a).
TranspOp
Transposition operator for page-wise matrix multiplication.
Value transpose(const Value &a, std::pmr::memory_resource *mr=nullptr)
Non-conjugate array transpose (y = a.
Value logicalAnd(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_and.
Value bitxor_(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Bitwise XOR of integer arrays (bitxor(a, b)).
Value minus(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise subtraction (y = a - b).
Value times(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise multiplication (y = a .
Value uminus(const Value &a, std::pmr::memory_resource *mr=nullptr)
Unary minus / negation (y = -a).
Value mrdivide(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Matrix right division / slash (y = A / B).
Value rdivide(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise right division (y = a .
Value logical_xor(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise logical exclusive OR (y = xor(a, b)).
Value bitcmp(const Value &a, int width=64, std::pmr::memory_resource *mr=nullptr)
Bitwise complement (bitcmp(a, width)).
Value mldivide(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Matrix left division / backslash (y = A \\ B).
Value logical_or(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise logical OR (y = a | b).
Value bitget(const Value &a, const Value &n, std::pmr::memory_resource *mr=nullptr)
Gets bit value at specified bit position in integer array (bitget(a, n)).
Value mtimes(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Matrix multiplication (Y = A * B).
Value mpower(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Matrix power (Y = A ^ B).
Value power(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise power (y = a .
Value plus(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise addition (y = a + b).
Value pagemtimes(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Page-wise matrix multiplication (pagemtimes(a, b)).
Value logicalNot(const Value &a, std::pmr::memory_resource *mr=nullptr)
Alias for logical_not.
Value xor_op(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_xor (y = xor(a, b)).
Value and_op(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_and (y = a & b).
Value uplus(const Value &a, std::pmr::memory_resource *mr=nullptr)
Unary plus (y = +a).
Value ldivide(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise left division (y = a .
Value ne(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise inequality (y = a ~= b).
Value ctranspose(const Value &a, std::pmr::memory_resource *mr=nullptr)
Complex conjugate transpose (y = a').
Value bitset(const Value &a, const Value &n, const Value &val=Value(), std::pmr::memory_resource *mr=nullptr)
Sets specified bit in integer array (bitset(a, n, val)).
Value bitshift(const Value &a, const Value &k, std::pmr::memory_resource *mr=nullptr)
Bitwise shift of integer values (bitshift(a, k)).
Value le(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise less than or equal (y = a <= b).
Value bitor_(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Bitwise OR of integer arrays (bitor(a, b)).
Value logical_and(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise logical AND (y = a & b).
Value any(const Value &x, int dim=0, std::pmr::memory_resource *mr=nullptr)
True if any element of array is non-zero (y = any(x, dim)).
Value gt(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise greater than (y = a > b).
Value logicalXor(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Alias for logical_xor.
Value elementPower(const Value &a, const Value &b, std::pmr::memory_resource *mr=nullptr)
Elementwise power alias (y = a .^ b).
@ CTranspose
Complex conjugate transpose (').
@ Transpose
Non-conjugate transpose (.').