opytimark.utils.decorator

Decorators.

opytimark.utils.decorator.check_exact_dimension(f: callable)

Checks whether the input dimension is exact to the demanded by the evaluated function.

Parameters

f – Function to be checked.

Returns

The function output or an error depending whether the check is valid.

Return type

(Any)

opytimark.utils.decorator.check_exact_dimension_and_auxiliary_matrix(f: callable)

Checks whether the input dimension is exact to the demanded by the evaluated function and defines a proper auxiliary matrix accordingly.

Parameters

f – Function to be checked.

Returns

The function output or an error depending whether the check is valid.

Return type

(Any)

opytimark.utils.decorator.check_less_equal_dimension(f: callable)

Checks whether the input dimension is less or equal to the demanded by the evaluated function.

Parameters

f – Function to be checked.

Returns

The function output or an error depending whether the check is valid.

Return type

(Any)