gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
sparsityPattern.h
Go to the documentation of this file.
1
// Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2
//
3
// See the LICENSE.txt file in the Gmsh root directory for license information.
4
// Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5
6
#ifndef SPARSITY_PATTERN_H
7
#define SPARSITY_PATTERN_H
8
9
// this class has been optimized, please before changing anything, check twice :
10
// - the impact on the performance to assemble typical High Order FE problems
11
// - the impact on the memory for this operation
12
13
class
sparsityPattern
{
14
int
*
_nByRow
, *
_nAllocByRow
;
15
int
**
_rowsj
;
16
int
_nRows
,
_nRowsAlloc
;
17
18
public
:
19
void
insertEntry
(
int
i,
int
j);
20
const
int
*
getRow
(
int
line
,
int
&size)
const
;
21
void
clear
();
22
sparsityPattern
();
23
~sparsityPattern
();
24
inline
int
getNbRows
() {
return
_nRows
; }
25
};
26
27
#endif
sparsityPattern
Definition:
sparsityPattern.h:13
sparsityPattern::~sparsityPattern
~sparsityPattern()
Definition:
sparsityPattern.cpp:19
sparsityPattern::_nByRow
int * _nByRow
Definition:
sparsityPattern.h:14
sparsityPattern::insertEntry
void insertEntry(int i, int j)
Definition:
sparsityPattern.cpp:36
sparsityPattern::_nAllocByRow
int * _nAllocByRow
Definition:
sparsityPattern.h:14
sparsityPattern::_nRowsAlloc
int _nRowsAlloc
Definition:
sparsityPattern.h:16
sparsityPattern::getRow
const int * getRow(int line, int &size) const
Definition:
sparsityPattern.cpp:102
sparsityPattern::_nRows
int _nRows
Definition:
sparsityPattern.h:16
sparsityPattern::_rowsj
int ** _rowsj
Definition:
sparsityPattern.h:15
sparsityPattern::sparsityPattern
sparsityPattern()
Definition:
sparsityPattern.cpp:93
sparsityPattern::getNbRows
int getNbRows()
Definition:
sparsityPattern.h:24
line
Definition:
shapeFunctions.h:342
sparsityPattern::clear
void clear()
Definition:
sparsityPattern.cpp:21
src
solver
sparsityPattern.h
Generated by
1.8.18