TransportMaps.Maps.InverseParametricMapBase

Module Contents

Classes

InverseParametricMap

Defines the parametric map \(S[{\bf a}] := T[{\bf a}]^{\dagger}\)

class TransportMaps.Maps.InverseParametricMapBase.InverseParametricMap(**kwargs)[source]

Bases: TransportMaps.Maps.InverseMapBase.InverseMap, TransportMaps.Maps.ParametricMapBase.ParametricMap

Defines the parametric map \(S[{\bf a}] := T[{\bf a}]^{\dagger}\)

property n_coeffs[source]

Returns the total number of coefficients.

Returns:

(int) – total number \(N\) of

coefficients characterizing the map.

Raises:

NotImplementedError – needs to be implemented in subclasses

property coeffs[source]

Returns the actual value of the coefficients.

Returns:

(ndarray [\(N\)]) – coefficients.

Raises:

NotImplementedError – needs to be implemented in subclasses

grad_a(x, *args, **kwargs)[source]

Compute \(\nabla_{\bf a} T[{\bf a}]({\bf x})\)

Parameters:
  • x (ndarray [\(m,d\)]) – evaluation points

  • precomp (dict) – dictionary of precomputed values

  • idxs_slice (slice) – if precomputed values are present, this parameter indicates at which of the points to evaluate. The number of indices represented by idxs_slice must match x.shape[0].

Returns:

(ndarray) – gradient

Raises:

NotImplementedError – needs to be implemented in subclasses

grad_a_inverse(x, *args, **kwargs)[source]