| 1 | /*BHEADER**********************************************************************
|
|---|
| 2 | * Copyright (c) 2008, Lawrence Livermore National Security, LLC.
|
|---|
| 3 | * Produced at the Lawrence Livermore National Laboratory.
|
|---|
| 4 | * This file is part of HYPRE. See file COPYRIGHT for details.
|
|---|
| 5 | *
|
|---|
| 6 | * HYPRE is free software; you can redistribute it and/or modify it under the
|
|---|
| 7 | * terms of the GNU Lesser General Public License (as published by the Free
|
|---|
| 8 | * Software Foundation) version 2.1 dated February 1999.
|
|---|
| 9 | *
|
|---|
| 10 | * $Revision: 2.4 $
|
|---|
| 11 | ***********************************************************************EHEADER*/
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | /******************************************************************************
|
|---|
| 16 | *
|
|---|
| 17 | * Header file for HYPRE_mv library
|
|---|
| 18 | *
|
|---|
| 19 | *****************************************************************************/
|
|---|
| 20 |
|
|---|
| 21 | #ifndef HYPRE_SEQ_MV_HEADER
|
|---|
| 22 | #define HYPRE_SEQ_MV_HEADER
|
|---|
| 23 |
|
|---|
| 24 | #include "HYPRE_utilities.h"
|
|---|
| 25 |
|
|---|
| 26 | #ifdef __cplusplus
|
|---|
| 27 | extern "C" {
|
|---|
| 28 | #endif
|
|---|
| 29 |
|
|---|
| 30 | /*--------------------------------------------------------------------------
|
|---|
| 31 | * Structures
|
|---|
| 32 | *--------------------------------------------------------------------------*/
|
|---|
| 33 |
|
|---|
| 34 | struct hypre_CSRMatrix_struct;
|
|---|
| 35 | typedef struct hypre_CSRMatrix_struct *HYPRE_CSRMatrix;
|
|---|
| 36 | struct hypre_MappedMatrix_struct;
|
|---|
| 37 | typedef struct hypre_MappedMatrix_struct *HYPRE_MappedMatrix;
|
|---|
| 38 | struct hypre_MultiblockMatrix_struct;
|
|---|
| 39 | typedef struct hypre_MultiblockMatrix_struct *HYPRE_MultiblockMatrix;
|
|---|
| 40 | #ifndef HYPRE_VECTOR_STRUCT
|
|---|
| 41 | #define HYPRE_VECTOR_STRUCT
|
|---|
| 42 | struct hypre_Vector_struct;
|
|---|
| 43 | typedef struct hypre_Vector_struct *HYPRE_Vector;
|
|---|
| 44 | #endif
|
|---|
| 45 |
|
|---|
| 46 | /*--------------------------------------------------------------------------
|
|---|
| 47 | * Prototypes
|
|---|
| 48 | *--------------------------------------------------------------------------*/
|
|---|
| 49 |
|
|---|
| 50 | /* HYPRE_csr_matrix.c */
|
|---|
| 51 | HYPRE_CSRMatrix HYPRE_CSRMatrixCreate( int num_rows , int num_cols , int *row_sizes );
|
|---|
| 52 | int HYPRE_CSRMatrixDestroy( HYPRE_CSRMatrix matrix );
|
|---|
| 53 | int HYPRE_CSRMatrixInitialize( HYPRE_CSRMatrix matrix );
|
|---|
| 54 | HYPRE_CSRMatrix HYPRE_CSRMatrixRead( char *file_name );
|
|---|
| 55 | void HYPRE_CSRMatrixPrint( HYPRE_CSRMatrix matrix , char *file_name );
|
|---|
| 56 | int HYPRE_CSRMatrixGetNumRows( HYPRE_CSRMatrix matrix , int *num_rows );
|
|---|
| 57 |
|
|---|
| 58 | /* HYPRE_mapped_matrix.c */
|
|---|
| 59 | HYPRE_MappedMatrix HYPRE_MappedMatrixCreate( void );
|
|---|
| 60 | int HYPRE_MappedMatrixDestroy( HYPRE_MappedMatrix matrix );
|
|---|
| 61 | int HYPRE_MappedMatrixLimitedDestroy( HYPRE_MappedMatrix matrix );
|
|---|
| 62 | int HYPRE_MappedMatrixInitialize( HYPRE_MappedMatrix matrix );
|
|---|
| 63 | int HYPRE_MappedMatrixAssemble( HYPRE_MappedMatrix matrix );
|
|---|
| 64 | void HYPRE_MappedMatrixPrint( HYPRE_MappedMatrix matrix );
|
|---|
| 65 | int HYPRE_MappedMatrixGetColIndex( HYPRE_MappedMatrix matrix , int j );
|
|---|
| 66 | void *HYPRE_MappedMatrixGetMatrix( HYPRE_MappedMatrix matrix );
|
|---|
| 67 | int HYPRE_MappedMatrixSetMatrix( HYPRE_MappedMatrix matrix , void *matrix_data );
|
|---|
| 68 | int HYPRE_MappedMatrixSetColMap( HYPRE_MappedMatrix matrix , int (*ColMap )(int ,void *));
|
|---|
| 69 | int HYPRE_MappedMatrixSetMapData( HYPRE_MappedMatrix matrix , void *MapData );
|
|---|
| 70 |
|
|---|
| 71 | /* HYPRE_multiblock_matrix.c */
|
|---|
| 72 | HYPRE_MultiblockMatrix HYPRE_MultiblockMatrixCreate( void );
|
|---|
| 73 | int HYPRE_MultiblockMatrixDestroy( HYPRE_MultiblockMatrix matrix );
|
|---|
| 74 | int HYPRE_MultiblockMatrixLimitedDestroy( HYPRE_MultiblockMatrix matrix );
|
|---|
| 75 | int HYPRE_MultiblockMatrixInitialize( HYPRE_MultiblockMatrix matrix );
|
|---|
| 76 | int HYPRE_MultiblockMatrixAssemble( HYPRE_MultiblockMatrix matrix );
|
|---|
| 77 | void HYPRE_MultiblockMatrixPrint( HYPRE_MultiblockMatrix matrix );
|
|---|
| 78 | int HYPRE_MultiblockMatrixSetNumSubmatrices( HYPRE_MultiblockMatrix matrix , int n );
|
|---|
| 79 | int HYPRE_MultiblockMatrixSetSubmatrixType( HYPRE_MultiblockMatrix matrix , int j , int type );
|
|---|
| 80 |
|
|---|
| 81 | /* HYPRE_vector.c */
|
|---|
| 82 | HYPRE_Vector HYPRE_VectorCreate( int size );
|
|---|
| 83 | int HYPRE_VectorDestroy( HYPRE_Vector vector );
|
|---|
| 84 | int HYPRE_VectorInitialize( HYPRE_Vector vector );
|
|---|
| 85 | int HYPRE_VectorPrint( HYPRE_Vector vector , char *file_name );
|
|---|
| 86 | HYPRE_Vector HYPRE_VectorRead( char *file_name );
|
|---|
| 87 |
|
|---|
| 88 | #ifdef __cplusplus
|
|---|
| 89 | }
|
|---|
| 90 |
|
|---|
| 91 | #endif
|
|---|
| 92 |
|
|---|
| 93 | #endif
|
|---|