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

clang-format

parent 033d7613
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ void ParticleLayoutComputation::compute(SimulationElement& elem) const
if (n_layers > 1 && alpha_f < 0)
return; // zero for transmission with multilayers (n>1) # TODO: support transmission GISAS
elem.addIntensity(m_interference_function_strategy->evaluate(elem)
* m_layout.surfaceDensity());
elem.addIntensity(m_interference_function_strategy->evaluate(elem) * m_layout.surfaceDensity());
}
void ParticleLayoutComputation::mergeRegionMap(
......
......@@ -17,7 +17,7 @@
std::vector<complex_t>
FormFactorPrecompute::scalar(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers)
const std::vector<FormFactorCoherentSum>& ff_wrappers)
{
std::vector<complex_t> result;
for (auto& ffw : ff_wrappers) {
......@@ -28,7 +28,7 @@ FormFactorPrecompute::scalar(const SimulationElement& sim_element,
FormFactorPrecompute::matrixFFVector_t
FormFactorPrecompute::polarized(const SimulationElement& sim_element,
const std::vector<FormFactorCoherentSum>& ff_wrappers)
const std::vector<FormFactorCoherentSum>& ff_wrappers)
{
FormFactorPrecompute::matrixFFVector_t result;
for (auto& ffw : ff_wrappers) {
......
......@@ -26,12 +26,10 @@ 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);
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
......
......@@ -68,10 +68,9 @@ SSCAHelper::getMeanFormfactorNorm(double qp, const std::vector<complex_t>& preco
return ff_orig * ff_conj;
}
void SSCAHelper::getMeanFormfactors(
double qp, Eigen::Matrix2cd& ff_orig, Eigen::Matrix2cd& ff_conj,
const FormFactorPrecompute::matrixFFVector_t& precomputed_ff,
const std::vector<FormFactorCoherentSum>& ff_wrappers) const
void SSCAHelper::getMeanFormfactors(double qp, Eigen::Matrix2cd& ff_orig, Eigen::Matrix2cd& ff_conj,
const FormFactorPrecompute::matrixFFVector_t& precomputed_ff,
const std::vector<FormFactorCoherentSum>& ff_wrappers) const
{
ff_orig = Eigen::Matrix2cd::Zero();
ff_conj = Eigen::Matrix2cd::Zero();
......
......@@ -15,8 +15,8 @@
#ifndef BORNAGAIN_SAMPLE_INTERFERENCE_SSCAHELPER_H
#define BORNAGAIN_SAMPLE_INTERFERENCE_SSCAHELPER_H
#include "Sample/Interference/IInterferenceFunctionStrategy.h"
#include "Sample/Interference/FormFactorPrecompute.h"
#include "Sample/Interference/IInterferenceFunctionStrategy.h"
#include <Eigen/StdVector>
class FormFactorCoherentSum;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment