Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3912f73
Added the Tridiagonal type and associated spmv kernel.
loiseaujc Mar 20, 2025
872777d
Rename dense to dense_mat because of a naming conflict.
loiseaujc Mar 20, 2025
abb6904
Added test for Tridiagonal spmv.
loiseaujc Mar 20, 2025
9d8710b
Changed comparison to account for floating point errors.
loiseaujc Mar 20, 2025
9ae0554
Move implementations to a dedicated module.
loiseaujc Mar 24, 2025
fc61941
Implementation of basic operations for Tridiagonal matrices is done.
loiseaujc Mar 24, 2025
9b8f650
In-code documentation.
loiseaujc Mar 25, 2025
de3098b
Added examples.
loiseaujc Mar 25, 2025
6ead4ba
Specifications page.
loiseaujc Mar 25, 2025
4698662
Fix typos in module header.
loiseaujc Mar 25, 2025
c9d2531
Fix errors in examples.
loiseaujc Mar 25, 2025
9e91af3
Enabled `xdp` and `qp` for `spmv` kernels.
loiseaujc Mar 26, 2025
78133fb
Update test/linalg/test_linalg_sparse.fypp
loiseaujc Jun 13, 2025
78b5085
Update example/specialmatrices/example_specialmatrices_dp_spmv.f90
loiseaujc Jun 13, 2025
6777aa0
Consistent lower-casing and imports.
loiseaujc Jun 13, 2025
4dc860b
Merge branch 'master' into tridiagonal_matrices
loiseaujc Jun 13, 2025
48c734e
Fixed allocation from source for complex types.
loiseaujc Jun 22, 2025
f102167
Make use of stdlib_constants to define the various zeros and ones.
loiseaujc Jun 27, 2025
05be1d6
Prevent temporary arrays + lower casing every names.
loiseaujc Jun 27, 2025
94220f4
Import everything from stdlib_kinds
loiseaujc Jun 27, 2025
b4b4f87
Fix imports.
loiseaujc Jun 27, 2025
b8366a1
Fix missing argument in check.
loiseaujc Jun 27, 2025
88707b6
Merge pull request #1 from loiseaujc/master
loiseaujc Jul 3, 2025
2fcc330
Update doc/specs/stdlib_specialmatrices.md
loiseaujc Jul 7, 2025
94ad82e
Update doc/specs/stdlib_specialmatrices.md
loiseaujc Jul 7, 2025
2fbda5d
Update doc/specs/stdlib_specialmatrices.md
loiseaujc Jul 7, 2025
1881c44
Update src/stdlib_specialmatrices.fypp
loiseaujc Jul 7, 2025
9d37af7
Update src/stdlib_specialmatrices_tridiagonal.fypp
loiseaujc Jul 7, 2025
29a6e04
Improved error handling.
loiseaujc Jul 7, 2025
27dbff3
Added test for tridiagonal error handling.
loiseaujc Jul 8, 2025
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix errors in examples.
  • Loading branch information
loiseaujc committed Mar 25, 2025
commit c9d25319f72d317eaa3aa2f66cf1badf61995b7b
1 change: 1 addition & 0 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ add_subdirectory(random)
add_subdirectory(selection)
add_subdirectory(sorting)
add_subdirectory(specialfunctions_gamma)
add_subdirectory(specialmatrices)
add_subdirectory(stats)
add_subdirectory(stats_distribution_exponential)
add_subdirectory(stats_distribution_normal)
Expand Down
2 changes: 2 additions & 0 deletions example/specialmatrices/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ADD_EXAMPLE(specialmatrices_dp_spmv)
ADD_EXAMPLE(tridiagonal_dp_type)
7 changes: 4 additions & 3 deletions example/specialmatrices/example_specialmatrices_dp_spmv.f90
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
program example_tridiagonal_matrix
use stdlib_constants, only: dp
use stdlib_linalg_constants, only: dp
use stdlib_specialmatrices
implicit none

integer, parameter :: n = 5
type(Tridiagonal_dp_type) :: A
real(dp) :: dl(n), dv(n), du(n)
real(dp) :: dl(n - 1), dv(n), du(n - 1)
real(dp) :: x(n), y(n), y_dense(n)
integer :: i

! Create an arbitrary tridiagonal matrix.
dl = [(i, i=1, n - 1)]; dv = [(2*i, i=1, n)]; du = [(3*i, i=1, n)]
dl = [(i, i=1, n - 1)]; dv = [(2*i, i=1, n)]; du = [(3*i, i=1, n - 1)]
A = Tridiagonal(dl, dv, du)

! Initialize vectors.
Expand Down
4 changes: 2 additions & 2 deletions example/specialmatrices/example_tridiagonal_dp_type.f90
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
program example_tridiagonal_matrix
use stdlib_constants, only: dp
use stdlib_linalg_constants, only: dp
use stdlib_specialmatrices
implicit none

integer, parameter :: n = 5
type(Tridiagonal_dp_type) :: A
real(dp) :: dl(n), dv(n), du(n)
real(dp) :: dl(n - 1), dv(n), du(n - 1)

! Generate random tridiagonal elements.
call random_number(dl)
Expand Down
Loading