42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/*BHEADER**********************************************************************
|
|
* (c) 1998 The Regents of the University of California
|
|
*
|
|
* See the file COPYRIGHT_and_DISCLAIMER for a complete copyright
|
|
* notice, contact person, and disclaimer.
|
|
*
|
|
* $Revision$
|
|
*********************************************************************EHEADER*/
|
|
|
|
/******************************************************************************
|
|
*
|
|
* Header info for Vector data structure
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#ifndef hypre_VECTOR_HEADER
|
|
#define hypre_VECTOR_HEADER
|
|
|
|
/*--------------------------------------------------------------------------
|
|
* hypre_Vector
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
typedef struct
|
|
{
|
|
double *data;
|
|
int size;
|
|
|
|
/* Does the Vector create/destroy `data'? */
|
|
int owns_data;
|
|
|
|
} hypre_Vector;
|
|
|
|
/*--------------------------------------------------------------------------
|
|
* Accessor functions for the Vector structure
|
|
*--------------------------------------------------------------------------*/
|
|
|
|
#define hypre_VectorData(vector) ((vector) -> data)
|
|
#define hypre_VectorSize(vector) ((vector) -> size)
|
|
#define hypre_VectorOwnsData(vector) ((vector) -> owns_data)
|
|
|
|
#endif
|