Module array_utils

Module array_utils 

Source

Functionsยง

all_finite
Returns true only if all elements of vec are finite floats.
flatten_matrix
Vectorizes (flattens) the given matrix mat.
from_noisy
Copies a noisy_float vector to a f32 one.
max_index_and_value
Given a vector of floats, yields the index and the value of the largest float in vec.
to_noisy
Copies a f32 vector to a noisy_float one.