Crate lace_utils

Source

Modules§

numbers
quad

Structs§

CategoricalCartProd
Iterates over a set of categorical ranges
ImplicitlyTransposedMatrix
Matrix
A lightweight Matrix abstraction that does almost nothing.

Traits§

MinMax
Shape
UniqueCollection

Functions§

argmax
Returns the index of the largest element in xs.
argmin
Returns the index of the smallest element in xs.
bincount
Bins the entries in xs into k bins.
choose2ixs
Choose two distinct random numbers in [0, …, n-1]
cumsum
Cumulative sum of xs
is_index_col
logaddexp
Perform ln(exp(x) + exp(y)) in a more numerically stable way
mean
The mean of a vector of f64
mean_var
Compute the mean and variance faster than by calling mean and var separately
minmax
Returns a tuple (min_elem, max_elem).
parse_result
Attempt to turn a &str into a T
sign
Like signum, but return 0.0 if the number is zero
std
The standard deviation of a vector of f64
transpose
transpose_mapvec
Turn Vec<Map<K, V>> into Map<K, Vec<V>>
unused_components
Returns a vector, in descending order, of the indices of the unused components in asgn_vec, which can take on values from 0…k-1
var
The variance of a vector of f64