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

Description

Implements 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.cpp.

Include dependency graph for Spinor.cpp:

Go to the source code of this file.

Functions

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

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 }