Modules

Macros

Macro here!() gives &str with the file:line path::function-name of where it was called from. This string will be rendered in bold red on (linux) terminals, so as to easily find the real error!

Structs

Minimum value, its index, Maximum value, its index

Constants

When printed, turns the terminal foreground rendering to bold green

This is needed for converting random numbers in u64 to f64

Returns the terminal rendering to default

Traits

Methods to manipulate indices of Vec<usize> type.

Method to_str() to serialize generic items, slices, and slices of slices. Method gr() to serialize and make the resulting string come out in bold green when printed

Functions

This just prints the items one by one instead of serializing

Generates f64 random numbers in the standardised range [0,1]. Very fast and simple, using XOR. For cryptography, use randomness source from the device instead. Takes a mutable seed which is changed and cycled. Based on: George Marsaglia, Xorshift RNGs, Journal of Statistical Software 08(i14), Jan 2003.

Generates vector of random numbers in the interval [0_f64;1_f64]. Seed keeps updating, so we can reuse the same variable.

Generates vector of random numbers in interval [0_u8;255_u8]. Seed keeps updating, so we can reuse the same variable.

Generates n vectors of dimension d, filled with random numbers in interval [0_f64;1_f64].

Generates n vectors of dimension d, filled with random numbers in interval [0_u8;255_u8].

Helper function to copy and cast entire &[T] to Vec. Like the standard .to_vec() method but also casts to f64 end type