Function: get_symbol_from_mat
Reference
Home
List of PyCrysFML08 Dictionaries
List of PyCrysFML08 Functions
Use
get_symb_from_mat provides the short symbol for a setting change defined by a rotational matrix and a translation vector.
function call
r = get_symb_from_mat(mat: ndarray, tr: ndarray, kwargs: dict)
Variable | Type | Description | |
---|---|---|---|
mat | ndarray; dtype=int32 | float32; shape=(3,3) | Rotational part of the symmetry operator. | |
tr | ndarray; dtype=float32; shape=3 | Translational part of the symmetry operator. | |
kwargs | dict | Optional arguments. Available keys: opposite. | |
opposite | bool | Rotational symbol before translational symbol. | |
r | tuple | The tuple returned by the function. r[0] : int, error code. If non-zero, an error has occurred. r[1] : str, error message. r[2]: str, the short symbol for the setting change. |
examples