Skip to main content

Crate quarb_lib_numpy

Crate quarb_lib_numpy 

Source
Expand description

np: — numpy as a Quarb command library, by reflection (spec: Command Libraries, “Reflected commands”): every function of the package and every method of ndarray is a command, named as numpy names it (np:mean, np:linalg.norm, np:percentile(50)), its synopsis read from the function’s signature when the gate first meets the name. A method is a function whose first parameter is the receiver, and the input fills it.

The stream crosses as an array: a list of numbers is a vector, a list of lists a matrix, a list of records the matrix of its numeric fields (the first text field, the label, is dropped: an array has no names; pd: keeps them), instants datetime64, durations timedelta64, null NaN. An array coming back is a library value, kept as it is for the next command and read by | @ as nested lists; a numpy scalar crosses as a number.

Structs§

Numpy
The library.