29 Tensor4 ppath_abs(nf, stokes_dim, stokes_dim, np, 0.);
30 Tensor4 trans_cumulat(nf, stokes_dim, stokes_dim, np, 0.);
31 Tensor4 trans_partial(nf, stokes_dim, stokes_dim, np, 0.);
36 for (
Index ip = 0; ip < np; ip++) {
37 extmat_case[ip].resize(nf);
48 for (
Index ip = 1; ip < np; ip++) {
49 #pragma omp parallel for 50 for (
Index iv = 0; iv < nf; iv++) {
52 Matrix ext_mat(stokes_dim, stokes_dim);
53 for (
Index is1 = 0; is1 < stokes_dim; is1++) {
54 for (
Index is2 = 0; is2 < stokes_dim; is2++) {
55 ext_mat(is1, is2) = 0.5 * (ppath_abs(iv, is1, is2, ip - 1) +
56 ppath_abs(iv, is1, is2, ip));
59 scalar_tau[iv] += lstep[ip - 1] * ext_mat(0, 0);
60 extmat_case[ip - 1][iv] = 0;
62 extmat_case[ip - 1][iv],
INDEX Index
The type to use for all integer numbers and indices.
void mult(ComplexVectorView y, const ConstComplexMatrixView &M, const ConstComplexVectorView &x)
Matrix-Vector Multiplication.
Header file for helper functions for OpenMP.
void ext2trans(MatrixView trans_mat, Index &icase, ConstMatrixView ext_mat, const Numeric &lstep)
Converts an extinction matrix to a transmission matrix.
Declaration of functions in rte.cc.