simpeg.optimization.GaussNewton.projection#
- GaussNewton.projection(p)[source]#
projects the search direction.
by default, no projection is applied.
- Parameters:
p (numpy.ndarray) – searchDirection
- Return type:
- Returns:
p, projected search direction
If you have things that also need to run in the method projection, you can create a method:
def _projection*(self, ... ): pass
Where the * can be any string. If present, _projection* will be called at the start of the default projection call. You may also completely overwrite this function.