gemseo / core

func_operations module

Functional operations

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

Bases: gemseo.core.function.MDOFunction

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]

Bases: gemseo.core.function.MDOFunction

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