MIDAPACK - MIcrowave Data Analysis PACKage  1.1b
Parallel software tools for high performance CMB DA analysis
 All Data Structures Files Functions Variables Typedefs Groups Pages
toeplitz_wizard.c
Go to the documentation of this file.
1 
57 #include "toeplitz.h"
58 
60 
63 int stbmmProd( Tpltz Nm1, double *V)
64 {
65 
66 #ifdef W_MPI
67 
68  mpi_stbmm(&V, Nm1.nrow, Nm1.m_cw, Nm1.m_rw, Nm1.tpltzblocks, Nm1.nb_blocks_loc, Nm1.nb_blocks_tot, Nm1.idp, Nm1.local_V_size, Nm1.flag_stgy, Nm1.comm);
69 
70 #else
71 
72 //int stbmm(double **V, int nrow, int m_cw, int m_rw, Block *tpltzblocks, int nb_blocks, int64_t idp, int local_V_size, Flag flag_stgy)
73 
74  stbmm(&V, Nm1.nrow, Nm1.m_cw, Nm1.m_rw, Nm1.tpltzblocks, Nm1.nb_blocks_loc, Nm1.idp, Nm1.local_V_size, Nm1.flag_stgy);
75 
76 #endif
77 
78  return 0;
79 }
80 
81 
82 
83 int gstbmmProd( Tpltz Nm1, double *V, Gap Gaps)
84 {
85 
86 #ifdef W_MPI
87 
88  mpi_gstbmm(&V, Nm1.nrow, Nm1.m_cw, Nm1.m_rw, Nm1.tpltzblocks, Nm1.nb_blocks_loc, Nm1.nb_blocks_tot, Nm1.idp, Nm1.local_V_size, Gaps.id0gap, Gaps.lgap, Gaps.ngap, Nm1.flag_stgy, Nm1.comm);
89 
90 #else
91 
92 //int gstbmm0(double **V, int nrow, int m_cw, int m_rw, Block *tpltzblocks, int nb_blocks, int64_t idp, int local_V_size, int *id0gap, int *lgap, int ngap, Flag flag_stgy)
93 
94  gstbmm(&V, Nm1.nrow, Nm1.m_cw, Nm1.m_rw, Nm1.tpltzblocks, Nm1.nb_blocks_loc, Nm1.idp, Nm1.local_V_size, Gaps.id0gap, Gaps.lgap, Gaps.ngap, Nm1.flag_stgy);
95 
96 #endif
97 
98  return 0;
99 }
100 
101