ogstools.propertylib.utils module#

ogstools.propertylib.utils.dim_from_len(len)[source]#
Returns:

The dimension corresponding to the length. (2|4 -> 2, 3|6 -> 3)

Parameters:

len (int) –

ogstools.propertylib.utils.sym_tensor_to_mat(vals)[source]#

Convert an symmetric tensor to a 3x3 matrix.

Parameters:

vals (ndarray) –

Return type:

ndarray

ogstools.propertylib.utils.identity(vals)[source]#
Returns:

The input values.

Parameters:

vals (T) –

Return type:

T