Commit 963f7901 authored by jannick.wolters's avatar jannick.wolters
Browse files

changed sigma_t to VectorVector _sigmaT


Former-commit-id: 6655b524
parent d6298ad4
......@@ -59,19 +59,13 @@ CSDPNSolver::CSDPNSolver( Config* settings ) : PNSolver( settings ) {
// std::cout << sigma_ref.rows() << std::endl;
// std::cout << _energies.size() << std::endl;
Matrix sigma_t( _energies.size(), sigma_ref.rows() );
_sigmaT = VectorVector( _polyDegreeBasis, Vector( _energies.size() ) );
for( unsigned idx_degree = 0; idx_degree < _polyDegreeBasis; ++idx_degree ) {
Vector xs_m = blaze::column( sigma_ref, idx_degree ); // Scattering cross section Moments
Interpolation interp( E_ref, xs_m );
blaze::column( sigma_t, idx_degree ) = interp( _energies );
_sigmaT[idx_degree] = interp( _energies );
}
// std::cout << "here\n";
// std::cout << size( sigma_t ) << std::endl;
_sigmaT = sigma_t;
TextProcessingToolbox::PrintMatrix( sigma_t );
Interpolation interpS( E_tab, S_tab );
_s = interpS( _energies );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment