TDLS 0.2.0
Tiny Device-callable Linear Solvers
Loading...
Searching...
No Matches
options.hpp
Go to the documentation of this file.
1#ifndef TDLS_SOLVERS_OPTIONS_HPP
2#define TDLS_SOLVERS_OPTIONS_HPP
3
4
5
29
30
31
32namespace tdls {
33
34
35
37enum class Schedule {
40};
41
42
43
45enum class MatrixLayout {
46 RowMajor,
48};
49
50
51
52} // namespace tdls
53
54
55
62#define TDLS_LAYOUT_INDEX(r, c, dim) \
63 (Config.layout == tdls::MatrixLayout::RowMajor ? unsigned((r) * (dim) + (c)) \
64 : unsigned((c) * (dim) + (r)))
65
66
67
68#endif // TDLS_SOLVERS_OPTIONS_HPP
Schedule
Elimination schedule of a factorization.
Definition options.hpp:37
@ RightLooking
Factor the diagonal block, push updates into the trailing matrix.
@ LeftLooking
Pull updates from prior blocks when a block is visited.
MatrixLayout
Memory layout of a dense matrix.
Definition options.hpp:45
@ ColMajor
Element (r, c) at flat index c * N + r.
@ RowMajor
Element (r, c) at flat index r * N + c, the TFEL convention.