Ifpack Package Browser (Single Doxygen Collection)  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prototypes.h
Go to the documentation of this file.
1 /*@HEADER
2 // ***********************************************************************
3 //
4 // Ifpack: Object-Oriented Algebraic Preconditioner Package
5 // Copyright (2002) Sandia Corporation
6 //
7 // Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
8 // license for use of this work by or on behalf of the U.S. Government.
9 //
10 // Redistribution and use in source and binary forms, with or without
11 // modification, are permitted provided that the following conditions are
12 // met:
13 //
14 // 1. Redistributions of source code must retain the above copyright
15 // notice, this list of conditions and the following disclaimer.
16 //
17 // 2. Redistributions in binary form must reproduce the above copyright
18 // notice, this list of conditions and the following disclaimer in the
19 // documentation and/or other materials provided with the distribution.
20 //
21 // 3. Neither the name of the Corporation nor the names of the
22 // contributors may be used to endorse or promote products derived from
23 // this software without specific prior written permission.
24 //
25 // THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
26 // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
29 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30 // EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
32 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
33 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
34 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
35 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 //
37 // Questions? Contact Michael A. Heroux (maherou@sandia.gov)
38 //
39 // ***********************************************************************
40 //@HEADER
41 */
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 void read_hb(char *data_file,
47  int *N_global, int *n_nonzeros,
48  double **val, int **bindx,
49  double **x, double **b, double **bt, double **xexact);
50 
51 void read_coo(char *data_file, int *proc_config,
52  int *N_global, int *n_nonzeros,
53  double **val, int **bindx,
54  double **x, double **b, double **xexact);
55 
56 
57 void distrib_msr_matrix(int *proc_config,
58  int *N_global, int *n_nonzeros,
59  int *N_update, int **update,
60  double **val, int **bindx,
61  double **x, double **b, double **bt, double **xexact);
62 
63 void distrib_vbr_matrix(int *proc_config,
64  int *N_global, int *N_blk_global,
65  int *n_nonzeros, int *n_blk_nonzeros,
66  int *N_update, int **update,
67  double **val, int **indx, int **rpntr, int **cpntr,
68  int **bpntr, int **bindx,
69  double **x, double **b, double **bt, double **xexact);
70 
71 void create_vbr(char *part_file, int *proc_config,
72  int *N_global, int *N_blk_global,
73  int *n_nonzeros, int *n_blk_nonzeros,
74  int *N_update, int **update,
75  int *bindx_msr, double *val_msr,
76  double **val, int **indx, int **rpntr, int **cpntr,
77  int **bpntr, int **bindx);
78 
79 double smsrres (int m, int n,
80  double *val, int *indx,
81  double *xlocal, double *x, double *b);
82 
83 double scscres (int isym, int m, int n,
84  double *val, int *indx, int *pntr,
85  double *x, double *b);
86 
87 void scscmv (int isym, int indexbase, int m, int n,
88  double *val, int *indx, int *pntr,
89  double *x, double *b);
90 
91 double svbrres (int m, int n, int m_blk,
92  double *val, int *indx, int *bindx, int *rpntr,
93  int *cpntr, int *bpntrb, int *bpntre,
94  double *x, double *b);
95 #ifdef __cplusplus
96 }
97 #endif
double svbrres(int m, int n, int m_blk, double *val, int *indx, int *bindx, int *rpntr, int *cpntr, int *bpntrb, int *bpntre, double *x, double *b)
Definition: svbrres.c:49
double scscres(int isym, int m, int n, double *val, int *indx, int *pntr, double *x, double *b)
Definition: scscres.c:47
double smsrres(int m, int n, double *val, int *indx, double *xlocal, double *x, double *b)
Definition: smsrres.c:47
void read_hb(char *data_file, int *N_global, int *n_nonzeros, double **val, int **bindx, double **x, double **b, double **bt, double **xexact)
Definition: read_hb.c:48
void scscmv(int isym, int indexbase, int m, int n, double *val, int *indx, int *pntr, double *x, double *b)
Definition: scscmv.c:43
void distrib_msr_matrix(int *proc_config, int *N_global, int *n_nonzeros, int *N_update, int **update, double **val, int **bindx, double **x, double **b, double **bt, double **xexact)
void read_coo(char *data_file, int *proc_config, int *N_global, int *n_nonzeros, double **val, int **bindx, double **x, double **b, double **xexact)
Definition: read_coo.c:47
void create_vbr(char *partition_file, int *proc_config, int *N_global, int *N_blk_global, int *n_nonzeros, int *n_blk_nonzeros, int *N_update, int **update, int *bindx_msr, double *val_msr, double **val, int **indx, int **rpntr, int **cpntr, int **bpntr, int **bindx)
Definition: create_vbr.c:47
void distrib_vbr_matrix(int *proc_config, int *N_global, int *N_blk_global, int *n_nonzeros, int *n_blk_nonzeros, int *N_update, int **update, double **val, int **indx, int **rpntr, int **cpntr, int **bpntr, int **bindx, double **x, double **b, double **bt, double **xexact)