16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SAMPLE_SPECULAR_SPECULARMAGNETICSTRATEGY_H
21 #define BORNAGAIN_SAMPLE_SPECULAR_SPECULARMAGNETICSTRATEGY_H
45 using coeffs_t = std::vector<coefficient_pointer_type>;
54 const std::vector<complex_t>& kz)
const;
58 virtual std::variant<complex_t, Eigen::Matrix2cd>
60 const std::vector<complex_t>& kzs)
const override;
63 std::vector<MatrixRTCoefficients>
computeTR(
const std::vector<Slice>& slices,
64 const std::vector<complex_t>& kzs)
const;
66 virtual std::pair<Eigen::Matrix2cd, Eigen::Matrix2cd>
71 const std::vector<Slice>& slices)
const;
Defines and implements class ISpecularStrategy.
Defines class MatrixRTCoefficients.
Interface for the Fresnel computations, both in the scalar and magnetic case.
std::vector< std::unique_ptr< const ILayerRTCoefficients > > coeffs_t
Specular reflection and transmission coefficients in a layer in case of magnetic interactions between...
Data structure containing the data of a single slice, for calculating the Fresnel coefficients.
Implements the magnetic Fresnel computation with Nevot-Croce roughness.
virtual std::variant< complex_t, Eigen::Matrix2cd > computeTopLayerR(const std::vector< Slice > &slices, const std::vector< complex_t > &kzs) const override
Computes the Fresnel R coefficient for the top layer only Introduced in order to speed up pure reflec...
ISpecularStrategy::coeffs_t Execute(const std::vector< Slice > &slices, const kvector_t &k) const
Computes refraction angle reflection/transmission coefficients for given sliced multilayer and waveve...
virtual std::pair< Eigen::Matrix2cd, Eigen::Matrix2cd > computeBackwardsSubmatrices(const MatrixRTCoefficients &coeff_i, const MatrixRTCoefficients &coeff_i1, double sigma) const =0
Eigen::Matrix2cd coefficient_entry_type
std::unique_ptr< const coefficient_type > coefficient_pointer_type
std::vector< MatrixRTCoefficients > computeTR(const std::vector< Slice > &slices, const std::vector< complex_t > &kzs) const
void calculateUpwards(std::vector< MatrixRTCoefficients > &coeff, const std::vector< Slice > &slices) const