Convenience functions

Convenience functions

ERM implements the following utility functions.

Convert an n-vector to an nx1 array

source

Sigmoid function

source

findvalue(s, lst): Find the first index of s in a list lst

source

compute the rms of a matrix or a vector

source

Apply f to each row of a matrix. f should map vectors to vectors

source