Tessero\Np
AI assistant
Build this with Claude Code, Cursor or Copilot
Copy a Tessero-tuned prompt for Tessero\Np, grounded in 16 real API signatures , into your IDE's AI. No chatbot, just exact context.
apply
static
apply(string $name, mixed ...$args): mixed
Call a function by its SciPy/NumPy name: Np::apply('log_ndtr', $x).
allclose
static
allclose(mixed $a, mixed $b, mixed $rtol = 1.0E-5, mixed $atol = 1.0E-8, mixed $equalNan = false): mixed
True when two arrays are element-wise equal within a tolerance (numpy.allclose).
append
static
append(mixed $arr, mixed $values, mixed $axis = null): mixed
Append values to the end of an array (numpy.append).
argpartition
static
argpartition(mixed $a, mixed $kth, ?int $axis = -1): Tessero\NDArray|int|float
Indices that partition the array (numpy.argpartition).
argwhere
static
argwhere(mixed $a): mixed
Indices of the non-zero elements, one row per element (numpy.argwhere).
around
static
around(mixed $a, mixed $decimals = 0): mixed
Round to the given number of decimals, half to even (numpy.around; an alias of round).
arrayEqual
static
arrayEqual(mixed $a1, mixed $a2, mixed $equalNan = false): mixed
True when two arrays have the same shape and elements (numpy.array_equal).
arrayEquiv
static
arrayEquiv(mixed $a1, mixed $a2): mixed
True when two arrays are shape-consistent and equal (numpy.array_equiv).
arraySplit
static
arraySplit(mixed $ary, mixed $indicesOrSections, mixed $axis = 0): mixed
Split into sections of nearly equal size (numpy.array_split).
asarrayChkfinite
static
asarrayChkfinite(mixed $a, mixed $dtype = null, mixed $order = null): mixed
Convert to array, raising if it contains NaN or Inf (numpy.asarray_chkfinite).
ascontiguousarray
static
ascontiguousarray(mixed $a, mixed $dtype = null): mixed
A C-contiguous array (ndim >= 1) of the given dtype (numpy.ascontiguousarray).
asfortranarray
static
asfortranarray(mixed $a, mixed $dtype = null): mixed
A contiguous array (ndim >= 1); Tessero has no Fortran memory order, so the values, shape and dtype match numpy.asfortranarray but the memory layout is C order.
atleast1d
static
atleast1d(mixed ...$arys): mixed
Arrays with at least one dimension; several arguments give a list (numpy.atleast_1d).
atleast2d
static
atleast2d(mixed ...$arys): mixed
Arrays with at least two dimensions; several arguments give a list (numpy.atleast_2d).
atleast3d
static
atleast3d(mixed ...$arys): mixed
Arrays with at least three dimensions; several arguments give a list (numpy.atleast_3d).
average
static
average(mixed $a, mixed $weights = null, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Weighted average along the given axes (numpy.average).
bartlett
static
bartlett(mixed $M): mixed
Bartlett (triangular) window (numpy.bartlett).
bincount
static
bincount(mixed $x, mixed $weights = null, mixed $minlength = 0): mixed
Count (or sum weights of) each non-negative integer (numpy.bincount).
bitwiseAnd
static
bitwiseAnd(mixed $x1, mixed $x2): mixed
Element-wise bitwise AND of two integer arrays (numpy.bitwise_and).
bitwiseCount
static
bitwiseCount(mixed $x): mixed
The number of 1-bits in the absolute value of each integer element, as uint8 (numpy.bitwise_count).
bitwiseOr
static
bitwiseOr(mixed $x1, mixed $x2): mixed
Element-wise bitwise OR of two integer arrays (numpy.bitwise_or).
bitwiseXor
static
bitwiseXor(mixed $x1, mixed $x2): mixed
Element-wise bitwise XOR of two integer arrays (numpy.bitwise_xor).
blackman
static
blackman(mixed $M): mixed
Blackman window (numpy.blackman).
broadcastArrays
static
broadcastArrays(mixed ...$args): mixed
Broadcast arrays against each other (numpy.broadcast_arrays).
broadcastShapes
static
broadcastShapes(mixed ...$args): mixed
The broadcast shape of the given shapes (numpy.broadcast_shapes).
broadcastTo
static
broadcastTo(mixed $array, mixed $shape): mixed
Broadcast an array to a shape (numpy.broadcast_to).
canCast
static
canCast(mixed $from_, mixed $to, mixed $casting = 'safe'): mixed
Whether a cast between two dtypes is allowed under a casting rule (numpy.can_cast).
choose
static
choose(mixed $a, mixed $choices, mixed $mode = 'raise'): mixed
Build an array from an index array and a list of choices (numpy.choose).
columnStack
static
columnStack(mixed $tup): mixed
Stack 1-D arrays as columns of a 2-D array (numpy.column_stack).
compress
static
compress(mixed $condition, mixed $a, mixed $axis = null): mixed
Selected slices along an axis (numpy.compress).
concat
static
concat(mixed $arrays, mixed $axis = 0, mixed $dtype = null, mixed $casting = 'same_kind'): mixed
Join arrays along an existing axis (numpy.concat, the Array API name of concatenate).
concatenate
static
concatenate(mixed $arrays, mixed $axis = 0, mixed $dtype = null, mixed $casting = 'same_kind'): mixed
Join arrays along an existing axis; axis=None flattens them first (numpy.concatenate).
convolve
static
convolve(mixed $a, mixed $v, mixed $mode = 'full'): mixed
Discrete linear convolution of two 1-D sequences (numpy.convolve).
copyto
static
copyto(mixed $dst, mixed $src, mixed $casting = 'same_kind', mixed $where = null): mixed
Copy values into an array, broadcasting, in place (numpy.copyto).
corrcoef
static
corrcoef(mixed $x, mixed $y = null, mixed $rowvar = true): mixed
Pearson correlation coefficients (numpy.corrcoef).
correlate
static
correlate(mixed $a, mixed $v, mixed $mode = 'valid'): mixed
Cross-correlation of two 1-D sequences (numpy.correlate).
countNonzero
static
countNonzero(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Number of non-zero values (numpy.count_nonzero).
cov
static
cov(mixed $m, mixed $y = null, mixed $rowvar = true, mixed $bias = false, mixed $ddof = null, mixed $fweights = null, mixed $aweights = null): mixed
Covariance matrix (numpy.cov).
cross
static
cross(mixed $a, mixed $b, mixed $axisa = -1, mixed $axisb = -1, mixed $axisc = -1, mixed $axis = null): mixed
Cross product of 3- (or 2-) element vectors (numpy.cross).
cumulativeSimpson
static
cumulativeSimpson(mixed $y, mixed $x = null, mixed $dx = 1.0, mixed $axis = -1, mixed $initial = null): mixed
Running integral by the composite Simpson's rule (scipy.integrate.cumulative_simpson).
cumulativeTrapezoid
static
cumulativeTrapezoid(mixed $y, mixed $x = null, mixed $dx = 1.0, mixed $axis = -1, mixed $initial = null): mixed
Running integral by the trapezoidal rule (scipy.integrate.cumulative_trapezoid).
cumulativeProd
static
cumulativeProd(mixed $x, ?int $axis = null, int|float|bool|null $includeInitial = false): Tessero\NDArray|int|float
Cumulative product, optionally starting with 1 (numpy.cumulative_prod).
cumulativeSum
static
cumulativeSum(mixed $x, ?int $axis = null, int|float|bool|null $includeInitial = false): Tessero\NDArray|int|float
Cumulative sum, optionally starting with 0 (numpy.cumulative_sum).
delete
static
delete(mixed $arr, mixed $obj, mixed $axis = null): mixed
Remove the given indices along an axis (numpy.delete).
diag
static
diag(mixed $v, mixed $k = 0): mixed
Extract a diagonal, or build a 2-D array with the given diagonal (numpy.diag).
diagIndices
static
diagIndices(mixed $n, mixed $ndim = 2): mixed
Indices of the main diagonal of an n x ... x n array (numpy.diag_indices).
diagIndicesFrom
static
diagIndicesFrom(mixed $arr): mixed
Indices of the main diagonal of an array (numpy.diag_indices_from).
diagflat
static
diagflat(mixed $v, mixed $k = 0): mixed
A 2-D array with the flattened input as a diagonal (numpy.diagflat).
diagonal
static
diagonal(mixed $a, mixed $offset = 0, mixed $axis1 = 0, mixed $axis2 = 1): mixed
The given diagonal of an array (numpy.diagonal).
diff
static
diff(mixed $a, mixed $n = 1, mixed $axis = -1, mixed $prepend = null, mixed $append = null): mixed
n-th discrete difference along an axis (numpy.diff).
digitize
static
digitize(mixed $x, mixed $bins, int|float|bool|null $right = false): Tessero\NDArray|int|float
Indices of the bins to which each value belongs (numpy.digitize).
divmod
static
divmod(mixed $x1, mixed $x2): mixed
The element-wise floor-division quotient and remainder as a pair (numpy.divmod).
dsplit
static
dsplit(mixed $ary, mixed $indicesOrSections): mixed
Split along the third axis (numpy.dsplit).
dstack
static
dstack(mixed $tup): mixed
Stack arrays depth-wise, along the third axis (numpy.dstack).
e
static
e(): mixed
Euler's number e (numpy.e).
ediff1d
static
ediff1d(mixed $ary, mixed $toEnd = null, mixed $toBegin = null): mixed
Differences between consecutive elements of the flattened array (numpy.ediff1d).
einsum
static
einsum(mixed ...$operands): mixed
Einstein summation over the operands (numpy.einsum); real float64 operands.
emptyLike
static
emptyLike(mixed $a, mixed $dtype = null, mixed $shape = null): mixed
An array with the shape and dtype of another; Tessero fills it with zeros (numpy.empty_like).
eulerGamma
static
eulerGamma(): mixed
The Euler-Mascheroni constant (numpy.euler_gamma).
expandDims
static
expandDims(mixed $a, mixed $axis): mixed
Insert length-1 axes (numpy.expand_dims).
extract
static
extract(mixed $condition, mixed $arr): mixed
Elements where the condition holds, flattened (numpy.extract).
fabs
static
fabs(mixed $x): mixed
Element-wise absolute value as float64 (numpy.fabs).
fillDiagonal
static
fillDiagonal(mixed $a, mixed $val, mixed $wrap = false): mixed
Fill the main diagonal, in place (numpy.fill_diagonal).
finfo
static
finfo(mixed $dtype): mixed
The machine limits of a floating-point dtype as a dict of the common fields (numpy.finfo).
flatnonzero
static
flatnonzero(mixed $a): mixed
Indices of the non-zero elements of the flattened array (numpy.flatnonzero).
flip
static
flip(mixed $m, mixed $axis = null): mixed
Reverse the order of elements along the given axes (numpy.flip).
fliplr
static
fliplr(mixed $m): mixed
Reverse the order along axis 1 (numpy.fliplr).
flipud
static
flipud(mixed $m): mixed
Reverse the order along axis 0 (numpy.flipud).
frexp
static
frexp(mixed $x): mixed
The normalised mantissa and integer exponent of each element as a (mantissa, exponent) pair (numpy.frexp).
fromfile
static
fromfile(mixed $fname, mixed $dtype = null, mixed $count = -1, mixed $sep = null, mixed $offset = 0): mixed
Read a binary or text file into a 1-D array of the given dtype (numpy.fromfile).
fromiter
static
fromiter(mixed $iterable, mixed $dtype, mixed $count = -1): mixed
A 1-D array built from the first count elements of an iterable, cast to dtype (numpy.fromiter).
fullLike
static
fullLike(mixed $a, mixed $fillValue, mixed $dtype = null, mixed $shape = null): mixed
An array of fill_value with the shape and dtype of another (numpy.full_like).
genfromtxt
static
genfromtxt(mixed $fname, mixed $delimiter = null, mixed $skipHeader = 0, mixed $skipFooter = 0, mixed $comments = null, mixed $usecols = null): mixed
Load a text file of numbers into a float64 array, missing fields as NaN (numpy.genfromtxt).
geomspace
static
geomspace(mixed $start, mixed $stop, mixed $num = 50, mixed $endpoint = true, mixed $dtype = null, mixed $axis = 0): mixed
Numbers spaced evenly on a log scale, a geometric progression (numpy.geomspace).
gradient
static
gradient(mixed ...$varargs): mixed
Gradient by central differences, one-sided at the edges (numpy.gradient); several axes give a list.
hamming
static
hamming(mixed $M): mixed
Hamming window (numpy.hamming).
hanning
static
hanning(mixed $M): mixed
Hanning window (numpy.hanning).
histogram
static
histogram(mixed $a, mixed $bins = 10, mixed $range = null, mixed $density = false, mixed $weights = null): mixed
Histogram of the data: counts (or density) and bin edges (numpy.histogram).
histogram2d
static
histogram2d(mixed $x, mixed $y, mixed $bins = 10, mixed $range = null, mixed $density = false, mixed $weights = null): mixed
The 2-D histogram of a set of points: counts (or density) and the bin edges (numpy.histogram2d).
histogramBinEdges
static
histogramBinEdges(mixed $a, mixed $bins = 10, mixed $range = null, mixed $weights = null): mixed
Bin edges numpy.histogram would use (numpy.histogram_bin_edges).
histogramdd
static
histogramdd(mixed $sample, mixed $bins = 10, mixed $range = null, mixed $density = false, mixed $weights = null): mixed
The D-dimensional histogram of a set of points: counts (or density) and the per-axis bin edges (numpy.histogramdd).
hsplit
static
hsplit(mixed $ary, mixed $indicesOrSections): mixed
Split horizontally, column-wise (numpy.hsplit).
hstack
static
hstack(mixed $tup, mixed $dtype = null, mixed $casting = 'same_kind'): mixed
Stack arrays horizontally, column-wise (numpy.hstack).
i0
static
i0(mixed $x): mixed
Modified Bessel function of the first kind, order 0 (numpy.i0).
identity
static
identity(mixed $n, mixed $dtype = null): mixed
The identity matrix (numpy.identity).
iinfo
static
iinfo(mixed $dtype): mixed
The limits of an integer dtype as a dict (min, max, bits) (numpy.iinfo).
indices
static
indices(mixed $dimensions, mixed $dtype = 'int64', mixed $sparse = false): mixed
An array of grid indices (numpy.indices); sparse=True gives a list of arrays.
inf
static
inf(): mixed
IEEE 754 positive infinity (numpy.inf).
inner
static
inner(mixed $a, mixed $b): mixed
Inner product over the last axes (numpy.inner).
insert
static
insert(mixed $arr, mixed $obj, mixed $values, mixed $axis = null): mixed
Insert values before the given indices (numpy.insert).
interp
static
interp(mixed $x, mixed $xp, mixed $fp, mixed $left = null, mixed $right = null, mixed $period = null): mixed
One-dimensional piecewise linear interpolation (numpy.interp).
intersect1d
static
intersect1d(mixed $ar1, mixed $ar2, mixed $assumeUnique = false, mixed $returnIndices = false): mixed
Sorted unique values in both arrays (numpy.intersect1d).
isclose
static
isclose(mixed $a, mixed $b, mixed $rtol = 1.0E-5, mixed $atol = 1.0E-8, mixed $equalNan = false): mixed
Element-wise test for approximate equality within a tolerance (numpy.isclose).
iscomplex
static
iscomplex(mixed $x): mixed
Element-wise test for a non-zero imaginary part (numpy.iscomplex).
iscomplexobj
static
iscomplexobj(mixed $x): mixed
True for a complex dtype (numpy.iscomplexobj).
isin
static
isin(mixed $element, mixed $testElements, int|float|bool|null $invert = false): Tessero\NDArray|int|float|bool
Whether each element is in test_elements (numpy.isin).
isneginf
static
isneginf(mixed $x): mixed
Element-wise test for negative infinity (numpy.isneginf).
isposinf
static
isposinf(mixed $x): mixed
Element-wise test for positive infinity (numpy.isposinf).
isreal
static
isreal(mixed $x): mixed
Element-wise test for a zero imaginary part (numpy.isreal).
isrealobj
static
isrealobj(mixed $x): mixed
True for a non-complex dtype (numpy.isrealobj).
ix_
static
ix_(mixed ...$args): mixed
An open mesh from several sequences (numpy.ix_).
kaiser
static
kaiser(mixed $M, mixed $beta): mixed
Kaiser window (numpy.kaiser).
kron
static
kron(mixed $a, mixed $b): mixed
Kronecker product (numpy.kron).
ldexp
static
ldexp(mixed $x1, mixed $x2): mixed
x1 * 2**x2 element-wise, with an integer exponent (numpy.ldexp).
leftShift
static
leftShift(mixed $x1, mixed $x2): mixed
Shift the bits of each integer left by the per-element count (numpy.left_shift).
lexsort
static
lexsort(mixed $keys): mixed
Indirect stable sort on several keys, the last key primary (numpy.lexsort).
loadtxt
static
loadtxt(mixed $fname, mixed $delimiter = null, mixed $skiprows = 0, mixed $comments = null, mixed $usecols = null): mixed
Load a text file of numbers into a float64 array (numpy.loadtxt).
logspace
static
logspace(mixed $start, mixed $stop, mixed $num = 50, mixed $endpoint = true, mixed $base = 10.0, mixed $dtype = null, mixed $axis = 0): mixed
Numbers spaced evenly on a log scale (numpy.logspace).
matrixTranspose
static
matrixTranspose(mixed $x): mixed
Transpose the last two axes (numpy.matrix_transpose).
matvec
static
matvec(mixed $x1, mixed $x2): mixed
Matrix-vector product over the last two axes of x1 and the last axis of x2 (numpy.matvec).
median
static
median(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Median along the given axes (numpy.median).
meshgrid
static
meshgrid(mixed ...$xi): mixed
Coordinate matrices from coordinate vectors (numpy.meshgrid).
modf
static
modf(mixed $x): mixed
The fractional and integral parts of each element as a (frac, intpart) pair, both carrying the sign of x (numpy.modf).
moveaxis
static
moveaxis(mixed $a, mixed $source, mixed $destination): mixed
Move axes to new positions (numpy.moveaxis).
nan
static
nan(): mixed
IEEE 754 not-a-number (numpy.nan).
nanToNum
static
nanToNum(mixed $x, mixed $copy = true, mixed $nan = 0.0, mixed $posinf = null, mixed $neginf = null): mixed
Replace NaN and infinities by finite numbers (numpy.nan_to_num).
nanargmax
static
nanargmax(mixed $a, ?int $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Index of the maximum ignoring NaN (numpy.nanargmax).
nanargmin
static
nanargmin(mixed $a, ?int $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Index of the minimum ignoring NaN (numpy.nanargmin).
nancumprod
static
nancumprod(mixed $a, ?int $axis = null): Tessero\NDArray|int|float
Cumulative product treating NaN as one (numpy.nancumprod).
nancumsum
static
nancumsum(mixed $a, ?int $axis = null): Tessero\NDArray|int|float
Cumulative sum treating NaN as zero (numpy.nancumsum).
nanmax
static
nanmax(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Maximum ignoring NaN; NaN for an all-NaN slice (numpy.nanmax).
nanmean
static
nanmean(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Mean ignoring NaN (numpy.nanmean).
nanmedian
static
nanmedian(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Median ignoring NaNs (numpy.nanmedian).
nanmin
static
nanmin(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Minimum ignoring NaN; NaN for an all-NaN slice (numpy.nanmin).
nanpercentile
static
nanpercentile(mixed $a, mixed $q, array|int|null $axis = null, string $method = 'linear', bool $keepdims = false): Tessero\NDArray|int|float|bool
Percentiles ignoring NaNs (numpy.nanpercentile).
nanprod
static
nanprod(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Product treating NaN as one (numpy.nanprod).
nanquantile
static
nanquantile(mixed $a, mixed $q, array|int|null $axis = null, string $method = 'linear', bool $keepdims = false): Tessero\NDArray|int|float|bool
Quantiles ignoring NaNs (numpy.nanquantile).
nanstd
static
nanstd(mixed $a, array|int|null $axis = null, int|float|bool|null $ddof = 0, bool $keepdims = false): Tessero\NDArray|int|float
Standard deviation ignoring NaN (numpy.nanstd).
nansum
static
nansum(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Sum treating NaN as zero (numpy.nansum).
nanvar
static
nanvar(mixed $a, array|int|null $axis = null, int|float|bool|null $ddof = 0, bool $keepdims = false): Tessero\NDArray|int|float
Variance ignoring NaN (numpy.nanvar).
ndim
static
ndim(mixed $a): mixed
Number of dimensions (numpy.ndim).
newtonCotes
static
newtonCotes(mixed $rn, mixed $equal = 0): mixed
Equally-spaced Newton-Cotes quadrature weights for rn intervals (scipy.integrate.newton_cotes).
nonzero
static
nonzero(mixed $a): mixed
Indices of the non-zero elements, one array per axis (numpy.nonzero).
onesLike
static
onesLike(mixed $a, mixed $dtype = null, mixed $shape = null): mixed
Ones with the shape and dtype of an array (numpy.ones_like).
outer
static
outer(mixed $a, mixed $b): mixed
Outer product of two vectors (numpy.outer).
packbits
static
packbits(mixed $a, mixed $axis = null, mixed $bitorder = 'big'): mixed
Pack binary-valued array elements into uint8, MSB-first (numpy.packbits).
pad
static
pad(mixed $array, mixed $padWidth, mixed $mode = 'constant', mixed $constantValues = null, mixed $endValues = null, mixed $statLength = null, mixed $reflectType = null): mixed
Pad an array (numpy.pad): constant, edge, linear_ramp, maximum, mean, median, minimum, reflect, symmetric, wrap, empty.
partition
static
partition(mixed $a, mixed $kth, ?int $axis = -1): Tessero\NDArray|int|float
Partially sorted copy: the kth element in its sorted place (numpy.partition).
percentile
static
percentile(mixed $a, mixed $q, array|int|null $axis = null, string $method = 'linear', bool $keepdims = false): Tessero\NDArray|int|float|bool
q-th percentiles along the given axes, q in [0, 100] (numpy.percentile).
pi
static
pi(): mixed
The constant pi (numpy.pi).
place
static
place(mixed $arr, mixed $mask, mixed $vals): mixed
Write successive values where the mask holds, in place (numpy.place).
poly
static
poly(mixed $seq): mixed
Coefficients of the polynomial with the given roots (numpy.poly).
polyadd
static
polyadd(mixed $a1, mixed $a2): mixed
Sum of two polynomials (numpy.polyadd).
polyder
static
polyder(mixed $p, mixed $m = 1): mixed
Derivative of a polynomial (numpy.polyder).
polydiv
static
polydiv(mixed $u, mixed $v): mixed
Quotient and remainder of polynomial division (numpy.polydiv).
polyfit
static
polyfit(mixed $x, mixed $y, mixed $deg): mixed
Least-squares polynomial fit, highest-degree coefficient first (numpy.polyfit).
polyint
static
polyint(mixed $p, mixed $m = 1, mixed $k = null): mixed
Antiderivative of a polynomial (numpy.polyint).
polymul
static
polymul(mixed $a1, mixed $a2): mixed
Product of two polynomials (numpy.polymul).
polysub
static
polysub(mixed $a1, mixed $a2): mixed
Difference of two polynomials (numpy.polysub).
polyval
static
polyval(mixed $p, mixed $x): mixed
Evaluate a polynomial at x (numpy.polyval).
positive
static
positive(mixed $x): mixed
Unary plus; a copy of the input (numpy.positive).
promoteTypes
static
promoteTypes(mixed $type1, mixed $type2): mixed
The smallest dtype both arguments can be safely cast to (numpy.promote_types).
ptp
static
ptp(mixed $a, array|int|null $axis = null, bool $keepdims = false): Tessero\NDArray|int|float
Range of values, maximum - minimum (numpy.ptp).
put
static
put(mixed $a, mixed $ind, mixed $v, mixed $mode = 'raise'): mixed
Write values at flat indices, in place (numpy.put).
putAlongAxis
static
putAlongAxis(mixed $arr, mixed $indices, mixed $values, mixed $axis): mixed
Write values at matching 1-D index slices, in place (numpy.put_along_axis).
putmask
static
putmask(mixed $a, mixed $mask, mixed $values): mixed
Write values where the mask holds, in place (numpy.putmask).
quantile
static
quantile(mixed $a, mixed $q, array|int|null $axis = null, string $method = 'linear', bool $keepdims = false): Tessero\NDArray|int|float|bool
q-th quantiles along the given axes, q in [0, 1] (numpy.quantile).
ravelMultiIndex
static
ravelMultiIndex(mixed $multiIndex, mixed $dims, mixed $mode = 'raise', mixed $order = 'C'): mixed
Convert coordinate arrays into flat indices (numpy.ravel_multi_index).
realIfClose
static
realIfClose(mixed $a, mixed $tol = 100): mixed
The real part when every imaginary part is close to zero (numpy.real_if_close).
repeat
static
repeat(mixed $a, mixed $repeats, mixed $axis = null): mixed
Repeat each element (numpy.repeat).
resize
static
resize(mixed $a, mixed $newShape): mixed
A new array of the given shape, repeating the data cyclically (numpy.resize).
resultType
static
resultType(mixed ...$arraysAndDtypes): mixed
The dtype resulting from NumPy's type-promotion rules (numpy.result_type).
rightShift
static
rightShift(mixed $x1, mixed $x2): mixed
Shift the bits of each integer right by the per-element count (numpy.right_shift).
roll
static
roll(mixed $a, mixed $shift, mixed $axis = null): mixed
Roll elements along the given axes; without axis on the flattened array (numpy.roll).
rollaxis
static
rollaxis(mixed $a, mixed $axis, mixed $start = 0): mixed
Roll an axis backwards to a position (numpy.rollaxis).
romb
static
romb(mixed $y, mixed $dx = 1.0): mixed
Romberg integration of 2**k+1 equally-spaced samples (scipy.integrate.romb).
roots
static
roots(mixed $p): mixed
Roots of a polynomial, complex128 sorted by (re, im) (numpy.roots).
rot90
static
rot90(mixed $m, mixed $k = 1, mixed $axes = null): mixed
Rotate by 90 degrees in the plane of two axes, default (0, 1) (numpy.rot90).
round
static
round(mixed $a, mixed $decimals = 0): mixed
Round to the given number of decimals, half to even (numpy.round).
savetxt
static
savetxt(mixed $fname, mixed $X, mixed $fmt = null, mixed $delimiter = null, mixed $newline = null, mixed $header = null, mixed $footer = null, mixed $comments = null): mixed
Save an array to a text file (numpy.savetxt).
searchsorted
static
searchsorted(mixed $a, mixed $v, string $side = 'left'): Tessero\NDArray|int|float
Indices where v would be inserted into the sorted array a (numpy.searchsorted).
select
static
select(mixed $condlist, mixed $choicelist, mixed $default = 0): mixed
Elements from the choices where the conditions hold (numpy.select).
setdiff1d
static
setdiff1d(mixed $ar1, mixed $ar2, mixed $assumeUnique = false): mixed
Unique values of ar1 that are not in ar2 (numpy.setdiff1d).
setxor1d
static
setxor1d(mixed $ar1, mixed $ar2, mixed $assumeUnique = false): mixed
Sorted values in exactly one of the arrays (numpy.setxor1d).
shape
static
shape(mixed $a): mixed
The shape of an array (numpy.shape).
simpson
static
simpson(mixed $y, mixed $x = null, mixed $dx = 1.0, mixed $axis = -1): mixed
Integral by the composite Simpson's rule (scipy.integrate.simpson).
sinc
static
sinc(mixed $x): mixed
Normalised sinc, sin(pi x) / (pi x) (numpy.sinc).
size
static
size(mixed $a, mixed $axis = null): mixed
Number of elements, in total or along axes (numpy.size).
sortComplex
static
sortComplex(mixed $a): mixed
A complex copy of a sorted by real then imaginary part (numpy.sort_complex).
spacing
static
spacing(mixed $x): mixed
The signed distance from each element to the adjacent representable float (numpy.spacing).
split
static
split(mixed $ary, mixed $indicesOrSections, mixed $axis = 0): mixed
Split into equal sections or at the given indices (numpy.split).
squeeze
static
squeeze(mixed $a, mixed $axis = null): mixed
Remove length-1 axes (numpy.squeeze).
stack
static
stack(mixed $arrays, mixed $axis = 0, mixed $dtype = null, mixed $casting = 'same_kind'): mixed
Join arrays along a new axis (numpy.stack).
swapaxes
static
swapaxes(mixed $a, mixed $axis1, mixed $axis2): mixed
Interchange two axes (numpy.swapaxes).
take
static
take(mixed $a, mixed $indices, mixed $axis = null, mixed $mode = 'raise'): mixed
Elements at the given indices along an axis (numpy.take).
takeAlongAxis
static
takeAlongAxis(mixed $arr, mixed $indices, mixed $axis = -1): mixed
Pick values by matching 1-D index slices (numpy.take_along_axis).
tensordot
static
tensordot(mixed $a, mixed $b, mixed $axes = 2): mixed
Tensor dot product over the given axes (numpy.tensordot).
tile
static
tile(mixed $A, mixed $reps): mixed
Repeat an array the given number of times per axis (numpy.tile).
trace
static
trace(mixed $a, mixed $offset = 0, mixed $axis1 = 0, mixed $axis2 = 1, mixed $dtype = null): mixed
Sum along a diagonal (numpy.trace).
trapezoid
static
trapezoid(mixed $y, mixed $x = null, mixed $dx = 1.0, mixed $axis = -1): mixed
Integral by the composite trapezoidal rule (numpy.trapezoid).
tri
static
tri(mixed $N, mixed $M = null, mixed $k = 0, mixed $dtype = 'float64'): mixed
Ones at and below the k-th diagonal, zeros elsewhere (numpy.tri).
tril
static
tril(mixed $m, mixed $k = 0): mixed
Lower triangle of an array (numpy.tril).
trilIndices
static
trilIndices(mixed $n, mixed $k = 0, mixed $m = null): mixed
Indices of the lower triangle of an (n, m) array (numpy.tril_indices).
trilIndicesFrom
static
trilIndicesFrom(mixed $arr, mixed $k = 0): mixed
Indices of the lower triangle of a 2-D array (numpy.tril_indices_from).
trimZeros
static
trimZeros(mixed $filt, mixed $trim = 'fb', mixed $axis = null): mixed
Trim leading and/or trailing zeros (numpy.trim_zeros).
triu
static
triu(mixed $m, mixed $k = 0): mixed
Upper triangle of an array (numpy.triu).
triuIndices
static
triuIndices(mixed $n, mixed $k = 0, mixed $m = null): mixed
Indices of the upper triangle of an (n, m) array (numpy.triu_indices).
triuIndicesFrom
static
triuIndicesFrom(mixed $arr, mixed $k = 0): mixed
Indices of the upper triangle of a 2-D array (numpy.triu_indices_from).
union1d
static
union1d(mixed $ar1, mixed $ar2): mixed
Sorted unique values in either array (numpy.union1d).
unique
static
unique(mixed $ar, mixed $returnIndex = false, mixed $returnInverse = false, mixed $returnCounts = false, mixed $equalNan = true): mixed
Sorted unique elements, optionally with indices, inverse and counts (numpy.unique).
uniqueAll
static
uniqueAll(mixed $x): mixed
Unique values, first indices, inverse indices and counts (numpy.unique_all).
uniqueCounts
static
uniqueCounts(mixed $x): mixed
Unique values and their counts (numpy.unique_counts).
uniqueInverse
static
uniqueInverse(mixed $x): mixed
Unique values and the inverse indices (numpy.unique_inverse).
uniqueValues
static
uniqueValues(mixed $x): mixed
Unique values; NaNs are not merged (numpy.unique_values).
unpackbits
static
unpackbits(mixed $a, mixed $axis = null, mixed $count = null, mixed $bitorder = 'big'): mixed
Unpack uint8 array elements into bits, MSB-first (numpy.unpackbits).
unravelIndex
static
unravelIndex(mixed $indices, mixed $shape, mixed $order = 'C'): mixed
Convert flat indices into a tuple of coordinate arrays (numpy.unravel_index).
unstack
static
unstack(mixed $x, mixed $axis = 0): mixed
Split an array into the arrays along an axis (numpy.unstack).
unwrap
static
unwrap(mixed $p, mixed $discont = null, mixed $axis = -1, mixed $period = 6.283185307179586): mixed
Unwrap by taking the complement of large jumps with respect to the period (numpy.unwrap).
vander
static
vander(mixed $x, mixed $N = null, mixed $increasing = false): mixed
Vandermonde matrix (numpy.vander).
vdot
static
vdot(mixed $a, mixed $b): mixed
Dot product of the flattened arrays (numpy.vdot).
vecdot
static
vecdot(mixed $x1, mixed $x2, mixed $axis = -1): mixed
Vector dot product over the last axis (numpy.vecdot).
vecmat
static
vecmat(mixed $x1, mixed $x2): mixed
Vector-matrix product; x1 is (..., N), x2 is (..., N, M) (numpy.vecmat).
vsplit
static
vsplit(mixed $ary, mixed $indicesOrSections): mixed
Split vertically, row-wise (numpy.vsplit).
vstack
static
vstack(mixed $tup, mixed $dtype = null, mixed $casting = 'same_kind'): mixed
Stack arrays vertically, row-wise (numpy.vstack).
zerosLike
static
zerosLike(mixed $a, mixed $dtype = null, mixed $shape = null): mixed
Zeros with the shape and dtype of an array (numpy.zeros_like).