<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">RotM</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">theta</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">u</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">eps</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1e-10</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#RotM"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.RotM"title="Link to this definition"></a></dt>
<dd><p>Definition of rotation matrix with angle theta around direction u.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">RotMa2b</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">b</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">eps</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1e-10</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#RotMa2b"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.RotMa2b"title="Link to this definition"></a></dt>
<dd><p>Definition of rotation matrix rotating unit vector a to unit vector b.
Function returns array R such that R@a = b holds.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">blow_up_orbindx</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">orb_indices</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#blow_up_orbindx"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.blow_up_orbindx"title="Link to this definition"></a></dt>
<dd><p>Function to blow up orbital indeces to make SPIN BOX indices.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">calculate_exchange_tensor</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">pair</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#calculate_exchange_tensor"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.calculate_exchange_tensor"title="Link to this definition"></a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">commutator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">a</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">b</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#commutator"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.commutator"title="Link to this definition"></a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">crossM</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">u</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#crossM"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.crossM"title="Link to this definition"></a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">hsk</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">H</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">ss</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">sc_off</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">k</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">(0,</span><spanclass="pre">0,</span><spanclass="pre">0)</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#hsk"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.hsk"title="Link to this definition"></a></dt>
<dd><p>One way to speed up Hk and Sk generation</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">make_contour</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">emin</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">-20</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">emax</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.0</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">enum</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">42</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">150</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#make_contour"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.make_contour"title="Link to this definition"></a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">make_kset</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dirs</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'xyz'</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">NUMK</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">20</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#make_kset"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.make_kset"title="Link to this definition"></a></dt>
<dd><p>Simple k-grid generator. Depending on the value of the dirs
argument k sampling in 1,2 or 3 dimensions is generated.
If dirs argument does not contain either of x,y or z
a kset of a single k-pont at the origin is returend.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">parse_magnetic_entity</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">dh</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">atom</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">l</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#parse_magnetic_entity"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.parse_magnetic_entity"title="Link to this definition"></a></dt>
<dd><p>Function to define orbital indeces of a given magnetic entity.
dh: a sisl Hamiltonian object
atom: an integer or list of integers, defining atom (or atoms) in the unicell forming the magnetic entity
l: integer, defining the angular momentum channel</p>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">print_atomic_indices</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">pair</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">magnetic_entities</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">dh</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#print_atomic_indices"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.print_atomic_indices"title="Link to this definition"></a></dt>
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">spin_tracer</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">M</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#spin_tracer"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.spin_tracer"title="Link to this definition"></a></dt>
<dd><p>Spin tracer utility.
This akes an operator with the orbital-spin sequence:
<spanclass="sig-prename descclassname"><spanclass="pre">grogu.useful.</span></span><spanclass="sig-name descname"><spanclass="pre">tau_u</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">u</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/grogu/useful.html#tau_u"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#grogu.useful.tau_u"title="Link to this definition"></a></dt>