From 5bfa6997c9fdb072500fc52e288833ea3797aad8 Mon Sep 17 00:00:00 2001 From: mcDandy Date: Sun, 11 Jan 2026 15:23:27 +0100 Subject: [PATCH] added info to readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8a8569f..8b5989e 100644 --- a/README.md +++ b/README.md @@ -90,8 +90,9 @@ You can also get the node from comfy manager under the name of More math. - `percentile(x, p)`: Returns the p-th percentile (p is 0-100). - `quantile(x, q)`: Returns the q-th quantile (q is 0-1). - `dot(a, b)`: Dot product of two tensors (flattens inputs to 1D) or lists. -- `topk(x, k)`: Returns a tensor with the **top K largest** values preserved at their original positions (others zeroed). For lists, returns the top K largest items sorted descending. (uses magnitude for for complex numbers). -- `botk(x, k)`: Returns a tensor with the **bottom K smallest** values preserved at their original positions (others zeroed). For lists, returns the bottom K smallest items sorted ascending. (uses magnitude for for complex numbers) +- `moment(x, a, k)`: Returns the k-th moment of x centered around a. +- `topk(x, k)`: Returns a tensor with the **top K largest** values preserved at their original positions (others zeroed). For lists, returns the top K largest items sorted descending. (uses magnitude for complex numbers). +- `botk(x, k)`: Returns a tensor with the **bottom K smallest** values preserved at their original positions (others zeroed). For lists, returns the bottom K smallest items sorted ascending. (uses magnitude for complex numbers) - `tnorm(x)`: Tensor normalisation. Normalises x (L2 norm along last dimension). - `snorm(x)`: The same as |x| for tensors. - `swap(tensor, dim, index1, index2)`: Swaps two slices of a tensor along a specified dimension.