classifies square matrices
Syntax
type = sw_mattype(mat)
type = sw_mattype(mat,epsilon)
Description
type = sw_mattype(mat) determines the type of the input matrix mat
which stacked matrices. It determines the type of exchnge
interaction that the matrix belongs to.
Note: Also works on symbolic matrices, but keep all symbols real for consistent
result!
Input Arguments
mat- Matrix with dimensions of .
epsilon- optional error bar on small matrix elements, default value is .
Output Arguments
type- Row vector with elements each having one of the following value:
1Heisenberg exchange,2anisotropic exchange,3DM interaction,4general matrix.