mypackage.foo

A generic module to use as example.

mypackage.foo.a_function(x, dim)[source]

Define a generic function.

Parameters
  • x (float) – The function’s argument array.

  • dim (int) – Number of dimensions to expand.

Returns

The evaluated function at the given input array.

Return type

float