BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaterialUtils.cpp File Reference
Include dependency graph for MaterialUtils.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{MaterialUtils.cpp}
 

Functions

const Eigen::Matrix2cd Unit_Matrix (Eigen::Matrix2cd::Identity())
 
const Eigen::Matrix2cd anonymous_namespace{MaterialUtils.cpp}::Pauli_X ((Eigen::Matrix2cd()<< 0, 1, 1, 0).finished())
 
const Eigen::Matrix2cd anonymous_namespace{MaterialUtils.cpp}::Pauli_Y ((Eigen::Matrix2cd()<< 0, -I, I, 0).finished())
 
const Eigen::Matrix2cd anonymous_namespace{MaterialUtils.cpp}::Pauli_Z ((Eigen::Matrix2cd()<< 1, 0, 0, -1).finished())
 

Variables

constexpr double magnetic_prefactor = (m_n * g_factor_n * mu_N / h_bar / h_bar) * 1e-18
 

Detailed Description

Implements functions in namespace MaterialUtils.

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

Function Documentation

◆ Unit_Matrix()

const Eigen::Matrix2cd Unit_Matrix ( Eigen::Matrix2cd::Identity()  )

Variable Documentation

◆ magnetic_prefactor

constexpr double magnetic_prefactor = (m_n * g_factor_n * mu_N / h_bar / h_bar) * 1e-18
constexpr