cuqi.model.AffineModel.forward#
- AffineModel.forward(*args, is_par=True, **kwargs)#
Forward function of the model.
Forward converts the input to function values (if needed) using the domain geometry of the model. Forward converts the output function values to parameters using the range geometry of the model.
- Parameters:
*args (ndarray or cuqi.array.CUQIarray) – The model input.
is_par (bool) – If True the input is assumed to be parameters. If False the input is assumed to be function values.
**kwargs (keyword arguments for model input.) – Keywords must match the names of the non_default_args of the model.
- Returns:
The model output. Always returned as parameters.
- Return type:
ndarray or cuqi.array.CUQIarray