The common.py module#

Summary#

Description#

Provides the common module.

Module detail#

common.fill_upper_triangular_matrix(vector: List[float]) numpy.ndarray#

Convert a vector of coefficients into a full matrix.

Generates a symmetric, square matrix.

Parameters:
vectorList[float]

Coefficients of the lower half-matrix. E.g. D11, D12, D22, etc.

Returns:
np.ndarray

Square symmetric matrix.

Raises:
ValueError

If the length of the input vector is not a triangular number.

common.MP_MATERIAL_HEADER_REGEX#
common.TB_MATERIAL_HEADER_REGEX#
common.FLOAT_VALUE_REGEX#
common.INTEGER_VALUE_REGEX#
common.MATRIX_LABEL_REGEX#
common.model_type#