Muscat.MeshTools.InriaMeshTools module¶
- flattenMetric(metric: ndarray[tuple[Any, ...], dtype[_ScalarT]]) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]¶
Convert complete SDP metric to upper triangular coeff metric (mmg format)
- Parameters:
metric (NDArray) – a field of complete SDP metric
- Returns:
metric – a field of metrics 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[tuple[Any, ...], dtype[_ScalarT]]) ndarray[tuple[Any, ...], dtype[_ScalarT]][source]¶
Convert upper triangular coeff metric (mmg format) to complete SDP metric
- Parameters:
metric (NDArray) – a field of metrics a metric is a vector containing the dim2 = dim*(dim+1)/2 coefficients of the symmetric definite positive matrix
- Returns:
metric – a field of complete SDP matrices
- Return type:
NDArray