Kwker

MATLAB / Octave API reference

Every public function of the +kwker package for MATLAB and GNU Octave (a MEX file over the C library), with its parameters and results (Kwker 0.1.0).

Import path: kwker.<name> (the +kwker folder on the path)

kwker.sort Page

MATLABPut the +kwker folder on the MATLAB or Octave path.
function [B, I] = kwker.sort(A, varargin)

Sort array elements with Kwker (the semantics of MATLAB's sort).

Real, full numeric arrays (double, single, int8 ... uint64) run through Kwker; anything else (logical, char, complex, sparse, ...) goes to the built-in sort. As in the built-in, -0 and +0 are equal and every NaN equals every other NaN (whatever its bit pattern): such elements keep their input order, and B holds A's own values.

See also KWKER.MAXK, KWKER.MINK, KWKER.KTH.

kwker.kth Page

MATLABPut the +kwker folder on the MATLAB or Octave path.
function [B, I] = kwker.kth(A, k, varargin)

The k-th element in sorted order along a dimension, with Kwker (a selection: no full sort).

See also KWKER.SORT.

kwker.maxk Page

MATLABPut the +kwker folder on the MATLAB or Octave path.
function [B, I] = kwker.maxk(A, k, varargin)

The k largest elements with Kwker (a selection: no full sort).

See also KWKER.MINK, KWKER.SORT.

kwker.mink Page

MATLABPut the +kwker folder on the MATLAB or Octave path.
function [B, I] = kwker.mink(A, k, varargin)

The k smallest elements with Kwker (a selection: no full sort).

See also KWKER.MAXK, KWKER.SORT.

kwker.version Page

MATLABPut the +kwker folder on the MATLAB or Octave path.
function s = kwker.version()

The Kwker library version and the engine it runs on this machine.