summary_symmetry.m

From Spinach Documentation Wiki
Jump to: navigation, search

Prints permutation-symmetry summary for a Spinach system. The function prints the user-supplied header and then a two-column table listing, for each declared permutation symmetry group, the name of the group and the spins that belong to it. The group names are taken from spin_system.comp.sym_group and the spin index vectors from spin_system.comp.sym_spins; one row is printed for each element of spin_system.comp.sym_spins, with the spin indices converted to text by num2str. The table is framed above and below by rules of equals signs, and its header row is separated from the body by a rule of hyphens. All printing goes through report.m. symmetry.m calls this function with the header 'permutation symmetry summary', and only when a symmetry group has actually been declared.

Syntax

    summary_symmetry(spin_system,header)

Parameters

    spin_system  - Spinach spin system description object

    header       - a string of text to precede the summary

Outputs

    this function prints to the console or to the user-specified
    output via report.m function

Notes

This is a service function of the Spinach kernel; the symmetry information it prints is placed into the spin system object by symmetry.m.

See also

symmetry.m, perm_group.m, report.m, validate_sym.m, Kernel utilities

Version 2.13, authors: Ilya Kuprov