Home > Applications > SpinW > m_files > sw_mattype.m

iFit/sw_mattype

PURPOSE ^

determines the type of square input matrix

SYNOPSIS ^

function type = sw_mattype(mat, epsilon)

DESCRIPTION ^

 determines the type of square input matrix

 type = SW_MATTYPE(mat, {epsilon}) 

 The function determines the type of the mat 3x3xN matrix and returns a
 vector with dimensions of [1 N].

 Input:

 mat       Matrix with dimensions of [3 3 N].
 epsilon   Error bar on small matrix element. Defult is 1e-5.
           Optional.

 Output:

 type      1   Heisenberg exchange
           2   Anisotropic exchange
           3   DM interaction
           4   General matrix

 Also works on symbolic matrices, but keep all symbols real for consistent
 result!

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1