TransportMaps.Maps.InverseMapBase
¶
Module Contents¶
Classes¶
Defines the map \(S := T^{\dagger}\) |
- class TransportMaps.Maps.InverseMapBase.InverseMap(**kwargs)[source]¶
Bases:
TransportMaps.Maps.MapBase.Map
Defines the map \(S := T^{\dagger}\)
- evaluate(x, precomp=None, idxs_slice=slice(None), *args, **kwargs)[source]¶
Evaluate the map \(T^{-1}\) at the points \({\bf x} \in \mathbb{R}^{m \times d}\).
- Parameters:
- Returns:
(
ndarray
[\(m,d\)]) – transformed points- Raises:
ValueError – if \(d\) does not match the dimension of the transport map.
- grad_x(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the gradient \(\nabla_{\bf x}T\) at the points \({\bf x} \in \mathbb{R}^{m \times d_x}\).
- Parameters:
- Returns:
(
ndarray
[\(m,d_y,d_x\)]) – transformed points- Raises:
NotImplementedError – to be implemented in sub-classes
- tuple_grad_x(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the function and gradient.
- Parameters:
- Returns:
(
tuple
) – function and gradient evaluation- Raises:
NotImplementedError – to be implemented in sub-classes
- hess_x(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the Hessian \(\nabla^2_{\bf x}T\) at the points \({\bf x} \in \mathbb{R}^{m \times d_x}\).
- Parameters:
- Returns:
(
ndarray
[\(m,d_y,d_x,d_x\)]) – transformed points- Raises:
NotImplementedError – to be implemented in sub-classes
- action_hess_x(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the action of the Hessian \(\langle\nabla^2_{\bf x}T,\delta{\bf x}\rangle\) at the points \({\bf x} \in \mathbb{R}^{m \times d_x}\).
- Parameters:
x (
ndarray
[\(m,d_x\)]) – evaluation pointsdx (
ndarray
[\(m,d_x\)]) – direction on which to evaluate the Hessianprecomp (
dict
) – dictionary of precomputed valuesidxs_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 matchx.shape[0]
.
- Returns:
(
ndarray
[\(m,d_y,d_x\)]) – transformed points- Raises:
NotImplementedError – to be implemented in sub-classes
- grad_x_inverse(x, *args, **kwargs)[source]¶
Evaluates \(\nabla_{\bf x}T\)
- Parameters:
- Returns:
(
ndarray
[\(m,d,d\)]) – gradient matrices for every evaluation point.- Raises:
ValueError – if \(d\) does not match the dimension of the transport map.
- tuple_grad_x_inverse(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the Moore-Penrose inverse function and gradient.
- Parameters:
- Returns:
(
tuple
) – function and gradient evaluation- Raises:
NotImplementedError – to be implemented in sub-classes
- hess_x_inverse(x, *args, **kwargs)[source]¶
Evaluates \(\nabla^2_{\bf x}T\)
- Parameters:
- Returns:
(
ndarray
[\(m,d,d,d\)]) – Hessian matrices for every evaluation point and every dimension.- Raises:
ValueError – if \(d\) does not match the dimension of the transport map.
- action_hess_x_inverse(x, *args, **kwargs)[source]¶
[Abstract] Evaluate the action of the Hessian of the Moore-Penrose inverse \(\langle\nabla^2_{\bf x}T^\dagger,\delta{\bf x}\rangle\) at the points \({\bf x} \in \mathbb{R}^{m \times d_x}\).
- Parameters:
x (
ndarray
[\(m,d_x\)]) – evaluation pointsdx (
ndarray
[\(m,d_x\)]) – direction on which to evaluate the Hessianprecomp (
dict
) – dictionary of precomputed valuesidxs_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 matchx.shape[0]
.
- Returns:
(
ndarray
[\(m,d_y,d_x\)]) – transformed points- Raises:
NotImplementedError – to be implemented in sub-classes