gemseo / core

# func_operations module¶

## Functional operations¶

class gemseo.core.func_operations.LinerarComposition(orig_function, interp_operator)[source]

Composes a function with a linear operator defined by a matrix computes orig_f(Mat.dot(x))

Constructor

Parameters
• orig_function – the original function to restrict

• interp_operator – operator matrix, the output of the function will be f(interp_operator.dot(x))

class gemseo.core.func_operations.RestrictedFunction(orig_function, restriction_indices, restriction_values)[source]

Restrict an MDOFunction to a subset of its input vector Fixes the rest of the indices

Constructor

Parameters
• orig_function – the original function to restrict

• restriction_indices – indices array of the input vector to fix

• restriction_values – the values of the input vector at indices ‘restriction_indices’ are set to restriction_values