gstools.tools.matrix_isotropify

gstools.tools.matrix_isotropify(dim, anis)[source]

Create a stretching matrix to make things isotrope.

Parameters:
  • dim (int) – spatial dimension

  • anis (list of float) – the anisotropy of length scales along the transversal directions

Returns:

Stretching matrix.

Return type:

numpy.ndarray