Muscat.FE.SymWeakForm module¶
- ArrayToMatrix(array, normalize=False) MutableDenseMatrix [source]¶
Convert a list of object into a sympy.Matrix (1D). str objects are converted into a symbols. If normalize is True, the array is rescaled by its L2-norm, if all values are numerical; a warning is issued otherwise.
- Parameters:
array (arraylike) – a list of objects
normalize (bool, optional) – if true and all the values in the array are numerical then the vector is rescaled (norm(array) ==1), by default False
- Returns:
a sympy matrix with str converted to symbols
- Return type:
Matrix
- GetField(name: str, size: int64, star=False, sdim=3, extraCoordinates=[]) MutableDenseMatrix [source]¶