SpM Handbook 1.3.0
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
 The real complex arithmetic datatype.
typedef double _Complex spm_complex64_t
 The double complex arithmetic datatype.

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.3.0
Author
Mathieu Faverge
Pierre Ramet
Tony Delarue
Alycia Lisito
Date
2024-07-09

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.

Function Documentation

◆ spm_imin()

◆ spm_imax()

◆ spm_iceil()

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()

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().