BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
Spinor.h File Reference

Description

Defines class Spinor.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file Spinor.h.

Include dependency graph for Spinor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Spinor
 

Functions

complex_t DotProduct (const Spinor &r, const Spinor &t)
 
Spinor operator* (complex_t, const Spinor &)
 

Function Documentation

◆ DotProduct()

complex_t DotProduct ( const Spinor r,
const Spinor t 
)

Definition at line 55 of file Spinor.cpp.

56 {
57  return r.u * t.u + r.v * t.v;
58 }
complex_t v
Definition: Spinor.h:31
complex_t u
Definition: Spinor.h:31

References Spinor::u, and Spinor::v.

Referenced by SumDWBA::coherentPolFF().

◆ operator*()

Spinor operator* ( complex_t  f,
const Spinor m 
)

Definition at line 49 of file Spinor.cpp.

50 {
51  return m * f;
52 }