Penelope v0.2.4 Penelope.ML.Vector
This is a the vector library used by the ML modules. It provides an interface to an efficient binary representation of 32-bit floating point values. Math is done via the BLAS interface, wrapped in a NIF module.
Link to this section Summary
Functions
computes z = x + y
concatenates two vectors
the empty vector
converts a list of floats to a vector
retrieves a vector element by 0-based index
computes y = ax
computes z = ax + y
calculates the number of elements in a vector
converts a vector to a list of floats
creates a vector of length n containing all zeros
Link to this section Types
Link to this section Functions
computes z = x + y
concatenates two vectors
the empty vector
converts a list of floats to a vector
retrieves a vector element by 0-based index
computes y = ax
computes z = ax + y
calculates the number of elements in a vector
converts a vector to a list of floats
creates a vector of length n containing all zeros