From d0aac56302a2c8b9c823849b45254429687fd00d Mon Sep 17 00:00:00 2001 From: Mathieu Faverge <mathieu.faverge@inria.fr> Date: Fri, 21 Apr 2017 14:43:03 +0200 Subject: [PATCH] Comment some API enum and move to spm --- spm.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/spm.h b/spm.h index 3a9409f9..4ce46baf 100644 --- a/spm.h +++ b/spm.h @@ -51,6 +51,31 @@ typedef enum pastix_driver_e { /* PastixDriverBRGMD, /\**< Not supported yet *\/ */ } pastix_driver_t; +/** + * @brief Arithmetic types. + * + * This describes the different arithmetics that can be stored in a sparse matrix. + * @remark The values start at 2 for compatibility purpose with PLASMA and + * DPLASMA libraries. + */ +typedef enum pastix_coeftype_e { + PastixPattern = 0, /**< Pattern only, no values are stored */ + PastixFloat = 2, /**< Single precision real */ + PastixDouble = 3, /**< Double precision real */ + PastixComplex32 = 4, /**< Single precision complex */ + PastixComplex64 = 5 /**< Double precision complex */ +} pastix_coeftype_t; + +/** + * @brief Sparse matrix format + */ +typedef enum pastix_fmttype_e { + PastixCSC = 0, /**< Compressed sparse column */ + PastixCSR = 1, /**< Compressed sparse row */ + PastixIJV = 2 /**< Coordinates */ +} pastix_fmttype_t; + + /** * * @brief The sparse matrix data structure -- GitLab