Difference between revisions of "Mat2ias.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:function.m}} __NOTOC__ A description of what the function does and how. ==Syntax== function call string ==Arguments== argument - description...")
 
Line 1: Line 1:
−
{{DISPLAYTITLE:function.m}} __NOTOC__
+
{{DISPLAYTITLE:mat2ias.m}} __NOTOC__
−
A description of what the function does and how.
+
Isotropic-antisymmetric-symmetric decomposition of a 3x3 real interaction matrix between real vectors u and v: u'*C*v = a*(u'*v) + d'*cross(u,v) + u'*A*v
  
 
==Syntax==
 
==Syntax==
  
−
     function call string
+
     [a,d,A]=mat2ias(C)
  
 
==Arguments==
 
==Arguments==
  
−
     argument      - description of the argument
+
     C - real 3x3 matrix
−
 
−
    argument      - description of the argument
 
−
                    description of the argument
 
  
 
==Outputs==
 
==Outputs==
  
−
     output  - description of the output
+
     a - scalar component
 
   
 
   
−
     output  - description of the output
+
     d - antisymmetric coupling vector
−
              description of the output
 
−
 
 
−
==Examples==
 
−
A description of what is done in the example below:
 
−
 
 
−
    % Comment
 
−
    matlab code
 
 
   
 
   
−
     % Comment
+
     A - symmetric coupling matrix
−
    matlab code
 
  
−
==Notes==
+
==See also==
−
Further notes on good and bad practices.
+
[[Kernel_utilities#Interaction_specification_conventions|Interaction specification conventions]]
  
−
==See also==
+
[[Spin system specification]]
−
Links to related functions and documentation sections.
 
  
  
−
''Version 2.6, authors: [[Author 1]]''
+
''Version 2.6, authors: [[Ilya Kuprov]]''

Revision as of 10:58, 1 July 2021

Isotropic-antisymmetric-symmetric decomposition of a 3x3 real interaction matrix between real vectors u and v: u'*C*v = a*(u'*v) + d'*cross(u,v) + u'*A*v

Syntax

    [a,d,A]=mat2ias(C)

Arguments

    C - real 3x3 matrix

Outputs

    a - scalar component

    d - antisymmetric coupling vector

    A - symmetric coupling matrix

See also

Interaction specification conventions

Spin system specification


Version 2.6, authors: Ilya Kuprov