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
mapmat.h File Reference

Declarations of the matrix type and his associated routines.
these routines are developed to handle sparse matrices. Typically, in the CMB Data Analysis context, it is especially developed handle pointing or unpointing matrices. Thus, the unpointing matrix A can be defined as a MIDAS_Mat. Operating with the pointing matrices can be done without redefining a new matrix. More...

Go to the source code of this file.

Data Structures

struct  Mat
 Matrix structure
A* = (A0* | A1* | ... | Ap-1* ) More...

Functions

int MatInit (Mat *A, int m, int nnz, int *indices, double *values, int flag#ifdef W_MPI, MPI_Comm comm#endif)
void MatSetIndices (Mat *A, int m, int nnz, int *indices)
void MatSetValues (Mat *A, int m, int nnz, double *values)
void MatFree (Mat *A)
int MatLocalShape (Mat *A, int sflag)
int MatComShape (Mat *A, int flag, MPI_Comm comm)
int MatVecProd (Mat *A, double *x, double *y, int pflag)
int TrMatVecProd (Mat *A, double *y, double *x, int pflag)
int TrMatVecProd_Naive (Mat *A, double *y, double *x, int pflag)
int MatLoad (Mat *A, char *filename)
int MatSave (Mat *A, char *filename)
int MatInfo (Mat *A, int master, char *filename)
 Print information about a matrix.
int greedyreduce (Mat *A, double *x)

Detailed Description

Declarations of the matrix type and his associated routines.
these routines are developed to handle sparse matrices. Typically, in the CMB Data Analysis context, it is especially developed handle pointing or unpointing matrices. Thus, the unpointing matrix A can be defined as a MIDAS_Mat. Operating with the pointing matrices can be done without redefining a new matrix.

Author:
Pierre Cargemel
Date:
November 2011

Definition in file mapmat.h.


Function Documentation

int greedyreduce ( Mat A,
double *  x 
)

Definition at line 610 of file mapmat.c.