gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <complex>
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "linearSystemCSR.h"
#include "OS.h"
Go to the source code of this file.
Macros | |
#define | SWAP(a, b) |
#define | SWAPI(a, b) |
Functions | |
static void * | CSRMalloc (size_t size) |
static void * | CSRRealloc (void *ptr, size_t size) |
static void | CSRList_Realloc (CSRList_T *liste, int n) |
static void | CSRList_Resize_strict (CSRList_T *liste, int n) |
static CSRList_T * | CSRList_Create (int n, int incr, int size) |
static void | CSRList_Delete (CSRList_T *liste) |
void | CSRList_Add (CSRList_T *liste, const void *data) |
int | CSRList_Nbr (CSRList_T *liste) |
static void | free_ivector (int *v, long nl, long nh) |
static int * | ivector (long nl, long nh) |
static int | cmpij (INDEX_TYPE ai, INDEX_TYPE aj, INDEX_TYPE bi, INDEX_TYPE bj) |
template<class scalar > | |
static void | _sort2_xkws (unsigned long n, scalar arr[], INDEX_TYPE ai[], INDEX_TYPE aj[]) |
template<class scalar > | |
void | sortColumns_ (int NbLines, int nnz, INDEX_TYPE *ptr, INDEX_TYPE *jptr, INDEX_TYPE *ai, scalar *a) |
Variables | |
const int | NSTACK = 50 |
const unsigned int | M_sort2 = 7 |
#define SWAP | ( | a, | |
b | |||
) |
Definition at line 16 of file linearSystemCSR.cpp.
#define SWAPI | ( | a, | |
b | |||
) |
Definition at line 20 of file linearSystemCSR.cpp.
|
static |
|
static |
Definition at line 270 of file linearSystemCSR.cpp.
Referenced by _sort2_xkws().
void CSRList_Add | ( | CSRList_T * | liste, |
const void * | data | ||
) |
Definition at line 86 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::addToMatrix().
|
static |
Definition at line 58 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::allocate().
|
static |
Definition at line 78 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::allocate().
int CSRList_Nbr | ( | CSRList_T * | liste | ) |
Definition at line 94 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::addToMatrix(), linearSystemCSR< scalar >::getMatrix(), linearSystemCSR< scalar >::getNNZ(), and linearSystemCSR< scalar >::zeroMatrix().
|
static |
Definition at line 34 of file linearSystemCSR.cpp.
Referenced by CSRList_Add(), and CSRList_Create().
|
static |
Definition at line 51 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::preAllocateEntries().
|
static |
Definition at line 24 of file linearSystemCSR.cpp.
Referenced by CSRList_Create(), and CSRList_Realloc().
|
static |
Definition at line 32 of file linearSystemCSR.cpp.
Referenced by CSRList_Realloc(), and CSRList_Resize_strict().
|
static |
Definition at line 255 of file linearSystemCSR.cpp.
Referenced by _sort2_xkws().
|
static |
Definition at line 261 of file linearSystemCSR.cpp.
Referenced by _sort2_xkws().
void sortColumns_ | ( | int | NbLines, |
int | nnz, | ||
INDEX_TYPE * | ptr, | ||
INDEX_TYPE * | jptr, | ||
INDEX_TYPE * | ai, | ||
scalar * | a | ||
) |
Definition at line 377 of file linearSystemCSR.cpp.
Referenced by linearSystemCSR< scalar >::getMatrix().
const unsigned int M_sort2 = 7 |
Definition at line 253 of file linearSystemCSR.cpp.
Referenced by _sort2_xkws().
const int NSTACK = 50 |
Definition at line 252 of file linearSystemCSR.cpp.
Referenced by _sort2_xkws().