SpM Handbook 1.2.4
Loading...
Searching...
No Matches
datatypes.h File Reference
#include <inttypes.h>
#include "spm/config.h"

Go to the source code of this file.

Macros

#define SPM_MPI_INT   MPI_INT
 The MPI type associated to spm_int_t.
 
#define SPM_INT_MAX   INT_MAX
 The maximum spm_int_t value.
 

Typedefs

typedef int spm_int_t
 The main integer datatype used in spm arrays.
 
typedef unsigned int spm_uint_t
 The main unsigned integer datatype used in spm arrays.
 
typedef double spm_fixdbl_t
 Double datatype that is not converted through precision generator functions.
 
typedef float _Complex spm_complex32_t
 
typedef double _Complex spm_complex64_t
 
typedef struct spmatrix_s spmatrix_t
 Type alias to the spmatrix_s structure.
 

Functions

static spm_int_t spm_imin (spm_int_t a, spm_int_t b)
 Internal function to compute min(a,b)
 
static spm_int_t spm_imax (spm_int_t a, spm_int_t b)
 Internal function to compute max(a,b)
 
static spm_int_t spm_iceil (spm_int_t a, spm_int_t b)
 Internal function to compute ceil(a,b)
 
static size_t spm_size_of (spm_coeftype_t type)
 Double datatype that is not converted through precision generator functions.
 

Detailed Description

Definitions of the datatypes used in SPM

Version
1.2.4
Author
Mathieu Faverge
Pierre Ramet
Tony Delarue
Alycia Lisito
Date
2024-05-29

Definition in file datatypes.h.

Typedef Documentation

◆ spm_fixdbl_t

typedef double spm_fixdbl_t

Double datatype that is not converted through precision generator functions.

Definition at line 150 of file datatypes.h.

◆ spm_complex32_t

typedef float _Complex spm_complex32_t

Complex numbers (Extracted from PaRSEC project)

Definition at line 161 of file datatypes.h.

◆ spm_complex64_t

typedef double _Complex spm_complex64_t

Definition at line 162 of file datatypes.h.

◆ spmatrix_t

typedef struct spmatrix_s spmatrix_t

Type alias to the spmatrix_s structure.

Definition at line 234 of file datatypes.h.

Function Documentation

◆ spm_imin()

◆ spm_imax()

static spm_int_t spm_imax ( spm_int_t  a,
spm_int_t  b 
)
static

Internal function to compute max(a,b)

Parameters
[in]a
[in]b
Returns
max( a, b )

Definition at line 119 of file datatypes.h.

Referenced by spm_scatter_csx_send_generic(), spm_scatter_ijv_send(), spmCheckAxb(), spmExtractLocalRHS(), spmGatherRHS(), spmGenMat(), spmGenRHS(), spmGenVec(), spmMatMat(), spmParseLaplacianInfo(), spmReduceRHS(), and spmSymmetrize().

◆ spm_iceil()

static spm_int_t spm_iceil ( spm_int_t  a,
spm_int_t  b 
)
static

Internal function to compute ceil(a,b)

Parameters
[in]a
[in]b
Returns
ceil( a, b )

Definition at line 141 of file datatypes.h.

◆ spm_size_of()

static size_t spm_size_of ( spm_coeftype_t  type)
static

Double datatype that is not converted through precision generator functions.

These declarations will not clash with what C++ provides because the names in C++ are name-mangled.

Parameters
[in]typeTODO
Return values
TODO

Definition at line 209 of file datatypes.h.

References SpmComplex32, SpmComplex64, SpmDouble, SpmFloat, and SpmPattern.

Referenced by spm_load_local(), spm_redist_extract_local(), spm_redist_post_recv(), spm_redist_send(), spm_redist_send_loop_csx(), spm_redist_send_loop_ijv(), spm_scatter_csx_local_continuous(), spm_scatter_csx_local_generic(), spm_scatter_csx_send_continuous(), spm_scatter_csx_send_generic(), spm_scatter_ijv_local(), spm_scatter_ijv_remote(), spm_scatter_ijv_send(), spm_symm_local_add(), spmAlloc(), and spmCopy().