Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:functions:transpose [2016/10/10 09:41] (current)
Line 1: Line 1:
 +====== Transpose ======
  
 +###
 +//​Transpose(a)//​ gives the transposed of object //a//. Object //a// is not changed, but cloned before transposing.
 +###
 +
 +===== Input =====
 +
 +###
 +  * a : Object of any type
 +
 +###
 +
 +===== Output =====
 +
 +###
 +  * //a'// : same type as //a//
 +
 +###
 +
 +===== Example =====
 +
 +###
 +A small example is:
 +###
 +
 +==== Input ====
 +<code Quanty Transpose.Quanty>​
 +dofile("​../​definitions.Quanty"​)
 +
 +Opp3 = Transpose(Opp2) ​
 +print(Opp2)
 +print(Opp3)
 +</​code>​
 +
 +==== Result ====
 +<file Quanty_Output Transpose.out>​
 +Operator: Ly
 +QComplex ​        ​= ​         1 (Real==0 or Complex==1 or Mixed==2)
 +MaxLength ​       =          2 (largest number of product of lader operators)
 +NFermionic modes =          6 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis)
 +NBosonic modes   ​= ​         0 (Number of bosonic modes (phonon modes, ...) in the one particle basis)
 +
 +Operator of Length ​  2
 +QComplex ​     =          1 (Real==0 or Complex==1)
 +N             ​= ​         8 (number of operators of length ​  2)
 +C  3 A  1 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  1 A  3 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  2 A  0 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  0 A  2 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  5 A  3 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  3 A  5 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  4 A  2 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  2 A  4 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +
 +
 +
 +Operator: Ly
 +QComplex ​        ​= ​         1 (Real==0 or Complex==1 or Mixed==2)
 +MaxLength ​       =          2 (largest number of product of lader operators)
 +NFermionic modes =          6 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis)
 +NBosonic modes   ​= ​         0 (Number of bosonic modes (phonon modes, ...) in the one particle basis)
 +
 +Operator of Length ​  2
 +QComplex ​     =          1 (Real==0 or Complex==1)
 +N             ​= ​         8 (number of operators of length ​  2)
 +C  1 A  3 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  3 A  1 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  0 A  2 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  2 A  0 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  3 A  5 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  5 A  3 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +C  2 A  4 |  0.000000000000000E+00 -7.071067811865476E-01
 +C  4 A  2 |  0.000000000000000E+00 ​ 7.071067811865476E-01
 +</​file>​
 +
 +===== Table of contents =====
 +{{indexmenu>​.#​1}}
Print/export