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.

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:
  • 1 Heisenberg exchange,
  • 2 anisotropic exchange,
  • 3 DM interaction,
  • 4 general matrix.