-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include the correct LAPACK package based on the compiler used
- Loading branch information
Aditya Dendukuri
committed
Jun 26, 2024
1 parent
bdcb3a0
commit b1b5ff4
Showing
6 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include <vector> | ||
|
||
namespace tuvx | ||
{ | ||
|
||
template<typename T> | ||
struct BandedMatrix | ||
{ | ||
// data fields | ||
std::size_t size_; | ||
std::size_t bandwidth_up_; | ||
std::size_t bandwidth_down_; | ||
std::vector<std::vector<T>> band; | ||
// constructor | ||
BandedMatrix<T>(std::size_t size, std::size_t up, std::size_t down); | ||
}; | ||
|
||
template<typename T> | ||
std::vector<T> Dot(const BandedMatrix<T>& A, const std::vector<T>&); | ||
|
||
} // namespace tuvx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
10 changes: 5 additions & 5 deletions
10
tool/numerical_analysis/tridiagonal_solver/lapacke_double_precision.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
3.29913e-17 0.0176367 | ||
3.30137e-17 0.175568 | ||
3.29986e-17 1.73411 | ||
3.29744e-17 17.864 | ||
3.29784e-17 188.188 | ||
0 0.0312956 | ||
0 0.229959 | ||
0 2.2255 | ||
0 22.7488 | ||
0 240.375 |
10 changes: 5 additions & 5 deletions
10
tool/numerical_analysis/tridiagonal_solver/lapacke_single_precision.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
1.63141e-08 0.0319062 | ||
1.62981e-08 0.315242 | ||
1.63017e-08 3.15343 | ||
1.62755e-08 18.4041 | ||
1.63076e-08 166.735 | ||
0 3.46066 | ||
0 0.295798 | ||
0 3.97411 | ||
0 25.0105 | ||
0 238.504 |