/usr/include/trilinos/ml_rap.h is in libtrilinos-ml-dev 12.10.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/* ******************************************************************** */
/* Declaration of the ML RAP data structure */
/* ******************************************************************** */
/* Author : Raymond Tuminaro (SNL) */
/* Date : February, 1999 */
/* ******************************************************************** */
#ifndef _MLRAP_
#define _MLRAP_
#include "ml_common.h"
#include "ml_defs.h"
#include "ml_struct.h"
#include "ml_comminfoagx.h"
/* ******************************************************************** */
/* external function proto-types */
/* -------------------------------------------------------------------- */
#ifndef ML_CPP
#ifdef __cplusplus
extern "C" {
#endif
#endif
extern void ML_convert_data_org(ML_Operator *mat, int d_org[], int *rcv,
int *remap, int leng, int add_or_not);
extern void ML_add_appended_rows(ML_CommInfoOP *comm_info,
ML_Operator *matrix, int orig_rows,
int total_rcvd, int appended_nzs);
extern void ML_back_to_local(ML_Operator *imatrix, ML_Operator *omatrix,
int max_per_proc);
extern void ML_back_to_csrlocal(ML_Operator *imatrix, ML_Operator *omatrix,
int max_per_proccomm);
extern int ML_back_to_epetraCrs(ML_Operator *Mat1Mat2, ML_Operator *Result,
ML_Operator *Mat1, ML_Operator *Mat2);
/* code is in ml_epetra_utils.h. Put the */
/* proto-type here to avoid c++ compiler on ml_rap.c */
extern void ML_exchange_rows(ML_Operator *orig, ML_Operator **appended,
ML_CommInfoOP *comm_info);
extern void ML_expand_accum(int accum_size, int **accum_col,
double **accum_val, int Ncols);
extern void ML_get_matrix_row(ML_Operator *input_matrix,int N_requested_rows,
int requested_rows[], int *allocated_space,
int **columns, double **values,
int row_lengths[], int index);
extern void ML_globalcsr2localcsr(ML_Operator *imatrix, int max_per_proc);
extern void ML_matmat_mult(ML_Operator *Amat, ML_Operator *Bmat,
ML_Operator **Cmat);
#ifdef HAVE_ML_AZTECOO
extern void ML_blkmatmat_mult(ML_Operator *Amatrix, ML_Operator *Bmatrix,
ML_Operator **Cmatrix);
#endif
extern void ML_convert2vbr(ML_Operator *in_matrix, int row_block_size, int *rpntr, int col_block_size, int *cpntr, int submatrix);
extern void ML_2matmult(ML_Operator *Mat1, ML_Operator *Mat2,
ML_Operator *Result, int matrix_type);
extern void ML_2matmult_block(ML_Operator *Mat1, ML_Operator *Mat2,
ML_Operator *Result, int matrix_type);
extern void ML_get_matrow_CSR(ML_Operator *input_matrix, int N_requested_rows,
int requested_rows[], int *allocated_space, int **columns,
double **values, int row_lengths[], int index);
extern void ML_get_matrow_VBR(ML_Operator *input_matrix, int N_requested_rows,
int requested_rows[], int *allocated_space, int **columns,
int **values, int row_lengths[], int index);
extern void ML_get_row_CSR_norow_map(ML_Operator *input_matrix,
int N_requested_rows, int requested_rows[], int *allocated_space,
int **columns, double **values, int row_lengths[], int index);
extern void ML_getrow_matvec(ML_Operator *matrix, double *vec,
int Nvec, double *ovec, int *Novec);
extern void ML_rap(ML_Operator *R2mat, ML_Operator *A2mat,
ML_Operator *P2mat, ML_Operator *Result,
int matrix_type);
extern void ML_rap_check(ML *ml, ML_Operator *RAP, ML_Operator *R,
ML_Operator *A, ML_Operator *P, int iNvec,
int oNvec);
extern void ML_CommInfoOP_GenUsingGIDExternals(int N_external, int external[],
int max_per_proc, ML_Operator *omatrix);
extern void ML_sum_duplicates(int accum_col[],double accum_val[],int *Ncols);
extern int ML_determine_Brows(int start, int *end, ML_Operator *Amatrix,
int *rows[], int *rows_length, int *NBrows,
int *rows_that_fit,
void (*Agetrow)(ML_Operator *,int,int *,int *,int **,
double **,int *,int));
extern int ML_determine_Bblkrows(int start, int *end, ML_Operator *Amatrix,
int *rows[], int *rows_length, int *NBrows,
int *rows_that_fit,
void (*Agetrow)(ML_Operator *,int,int *,int *,int **,
int **,int *,int));
#ifndef ML_CPP
#ifdef __cplusplus
}
#endif
#endif
#define ML_matrix_type 0
#define ML_N_internal 1
#define ML_N_border 2
#define ML_N_external 3
#define ML_N_int_blk 4
#define ML_N_bord_blk 5
#define ML_N_ext_blk 6
#define ML_N_neigh 7
#define ML_total_send 8
#define ML_name 9
#define ML_internal_use 10
#define ML_N_rows 11
#define ML_neighbors 12
#define ML_rec_length (12 + ML_MAX_NEIGHBORS)
#define ML_send_length (12 + 2*ML_MAX_NEIGHBORS)
#define ML_send_list (12 + 3*ML_MAX_NEIGHBORS)
#define ML_FALSE 0
#define ML_TRUE 1
#endif
|