Muscat.Containers.InriaMeshTools module¶
- flattenMetric(metric: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]¶
Convert complete SDP metric to upper triangular coeff metric (mmg format)
- Parameters:
metric (NDArray) – complete SDP metric
- Returns:
metric – a metric is a vector containing the dim2 = dim*(dim+1)/2 coefficients of the symmetric definite positive matrix
- Return type:
NDArray
- fullMetric(metric: ndarray[Any, dtype[_ScalarType_co]]) ndarray[Any, dtype[_ScalarType_co]] [source]¶
Convert upper triangular coeff metric (mmg format) to complete SDP metric
- Parameters:
metric (NDArray) – a metric is a vector containing the dim2 = dim*(dim+1)/2 coefficients of the symmetric definite positive matrix
- Returns:
metric – complete SDP metric
- Return type:
NDArray