Utilities

The helper functions are organized by what objects they act on. The three categories are tensor helpers, numpy-array helpers and miscellaneous.