swsym.operator#
Syntax#
[symOp, symInfo] = swsym.operator(sym)
[symOp, symInfo] = swsym.operator(sym,fid)
Description#
[symOp, symInfo] = swsym.operator(sym) generates all symmetry
elements from a given set of generators. It also accepts space group
labels or space group index or string of symmetry operators.
Input Arguments#
symLine index in the
symmetry.datfile or string of the symmetry operators or matrix of symmetry generators with dimensions of \([3\times 4\times n_{op}]\). For example:sym = 'P n m a'.fidIf non-zero, the symmetry operators will be printed to the file identified by
fid, the following values are valid:0no printed output (default),1standard output (Command Line),fidtext file opened before usingfid = fopen(path).
Output Arguments#
symOpAll the symmetry elements in a matrix with dimensions of \([3\times 4\times n_{op}]\).
symInfoStructure that contains additional information about the space group with the following fields:
nameName of the space group, if theswsym.generatorfunction is called with no input, name stores the name of all space groups fromsymmetry.datfile in a cell.strThe string of the symmetry operations.numThe line index in thesymmetry.datfile.