Skip to content
Snippets Groups Projects
Commit 2904c7bd authored by Wuttke, Joachim's avatar Wuttke, Joachim Committed by Wuttke, Joachim
Browse files

rm unused source files Sample/Interference/FormFactorPrecompute

parent 512bb864
Branches
Tags
1 merge request!135Bring namespaces under hierarchy
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Sample/Interference/FormFactorPrecompute.cpp
//! @brief Implements helper functions for InterferenceFunctions and Strategies.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#include "Sample/Interference/FormFactorPrecompute.h"
#include "Sample/Fresnel/FormFactorCoherentSum.h"
std::vector<complex_t>
FormFactorPrecompute::scalar(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers)
{
std::vector<complex_t> result;
for (const auto& ffw : ff_wrappers)
result.push_back(ffw.evaluate(sim_element));
return result;
}
FormFactorPrecompute::matrixFFVector_t
FormFactorPrecompute::polarized(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers)
{
FormFactorPrecompute::matrixFFVector_t result;
for (const auto& ffw : ff_wrappers)
result.push_back(ffw.evaluatePol(sim_element));
return result;
}
// ************************************************************************************************
//
// BornAgain: simulate and fit reflection and scattering
//
//! @file Sample/Interference/FormFactorPrecompute.h
//! @brief Defines helper functions for InterferenceFunctions and Strategies.
//!
//! @homepage http://www.bornagainproject.org
//! @license GNU General Public License v3 or higher (see COPYING)
//! @copyright Forschungszentrum Jülich GmbH 2018
//! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
//
// ************************************************************************************************
#ifdef SWIG
#error no need to expose this header to Swig
#endif
#ifndef USER_API
#ifndef BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
#define BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
#include "Base/Types/Complex.h"
#include <Eigen/StdVector>
#include <vector>
class FormFactorCoherentSum;
class SimulationElement;
namespace FormFactorPrecompute {
using matrixFFVector_t = std::vector<Eigen::Matrix2cd, Eigen::aligned_allocator<Eigen::Matrix2cd>>;
std::vector<complex_t> scalar(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers);
matrixFFVector_t polarized(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers);
} // namespace FormFactorPrecompute
#endif // BORNAGAIN_SAMPLE_INTERFERENCE_FORMFACTORPRECOMPUTE_H
#endif // USER_API
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment