BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
FormFactorPrecompute Namespace Reference

Typedefs

using matrixFFVector_t = std::vector< Eigen::Matrix2cd, Eigen::aligned_allocator< Eigen::Matrix2cd > >
 

Functions

matrixFFVector_t polarized (const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
 
std::vector< complex_tscalar (const SimulationElement &sim_element, const std::vector< FormFactorCoherentSum > &ff_wrappers)
 

Typedef Documentation

◆ matrixFFVector_t

using FormFactorPrecompute::matrixFFVector_t = typedef std::vector<Eigen::Matrix2cd, Eigen::aligned_allocator<Eigen::Matrix2cd> >

Definition at line 31 of file FormFactorPrecompute.h.

Function Documentation

◆ polarized()

FormFactorPrecompute::matrixFFVector_t FormFactorPrecompute::polarized ( const SimulationElement sim_element,
const std::vector< FormFactorCoherentSum > &  ff_wrappers 
)

Definition at line 29 of file FormFactorPrecompute.cpp.

31 {
33  for (const auto& ffw : ff_wrappers)
34  result.push_back(ffw.evaluatePol(sim_element));
35  return result;
36 }
std::vector< Eigen::Matrix2cd, Eigen::aligned_allocator< Eigen::Matrix2cd > > matrixFFVector_t

Referenced by DWBAComputation::DWBAComputation(), ISimulation2D::generateSingleThreadedComputation(), and SpecularSimulation::generateSingleThreadedComputation().

◆ scalar()

std::vector< complex_t > FormFactorPrecompute::scalar ( const SimulationElement sim_element,
const std::vector< FormFactorCoherentSum > &  ff_wrappers 
)

Definition at line 19 of file FormFactorPrecompute.cpp.

21 {
22  std::vector<complex_t> result;
23  for (const auto& ffw : ff_wrappers)
24  result.push_back(ffw.evaluate(sim_element));
25  return result;
26 }