Skip to content

Commit 3428d45

Browse files
committed
changed file names from extended_lapack to lapack_extended, updated docs, updated alpha and beta checks
1 parent a27ebf8 commit 3428d45

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

src/lapack_extended/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set(lapack_extended_fppFiles
22
../stdlib_kinds.fypp
3-
stdlib_extended_lapack_base.fypp
4-
stdlib_extended_lapack.fypp
3+
stdlib_lapack_extended_base.fypp
4+
stdlib_lapack_extended.fypp
55
)
66
set(lapack_extended_cppFiles
77
../stdlib_linalg_constants.fypp

src/lapack_extended/stdlib_extended_lapack.fypp renamed to src/lapack_extended/stdlib_lapack_extended.fypp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#:set C_KINDS_TYPES = list(zip(CMPLX_KINDS, CMPLX_TYPES, CMPLX_SUFFIX))
44
#:set KINDS_TYPES = R_KINDS_TYPES+C_KINDS_TYPES
55

6-
submodule(stdlib_extended_lapack_base) stdlib_extended_lapack
6+
submodule(stdlib_lapack_extended_base) stdlib_lapack_extended
77
implicit none
88
contains
99
#:for ik,it,ii in LINALG_INT_KINDS_TYPES
@@ -37,7 +37,7 @@ contains
3737
b(1_${ik}$, j) = b(1_${ik}$, j) + alpha * temp
3838
do i = 2, n - 1
3939
temp = dl(i - 1) * x(i - 1, j) + d(i) * x(i, j) + du(i) * x(i + 1, j)
40-
b(i, j) = b (i, j) + alpha * temp
40+
b(i, j) = b(i, j) + alpha * temp
4141
end do
4242
temp = dl(n - 1) * x(n - 1, j) + d(n) * x(n, j)
4343
b(n, j) = b(n, j) + alpha * temp

src/lapack_extended/stdlib_extended_lapack_base.fypp renamed to src/lapack_extended/stdlib_lapack_extended_base.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#:set R_KINDS_TYPES = list(zip(REAL_KINDS, REAL_TYPES, REAL_SUFFIX))
33
#:set C_KINDS_TYPES = list(zip(CMPLX_KINDS, CMPLX_TYPES, CMPLX_SUFFIX))
44
#:set KINDS_TYPES = R_KINDS_TYPES+C_KINDS_TYPES
5-
module stdlib_extended_lapack_base
5+
module stdlib_lapack_extended_base
66
use stdlib_linalg_constants
77
implicit none
88

src/stdlib_specialmatrices.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module stdlib_specialmatrices
1212
use stdlib_constants
1313
use stdlib_linalg_state, only: linalg_state_type, linalg_error_handling, LINALG_ERROR, &
1414
LINALG_INTERNAL_ERROR, LINALG_VALUE_ERROR
15-
use stdlib_extended_lapack_base
15+
use stdlib_lapack_extended_base
1616
implicit none
1717
private
1818
public :: tridiagonal

src/stdlib_specialmatrices_tridiagonal.fypp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ submodule (stdlib_specialmatrices) tridiagonal_matrices
163163
${t1}$ :: alpha_, beta_
164164
integer(ilp) :: n, nrhs, ldx, ldy
165165
character(1) :: op_
166+
#:if t1.startswith('real')
166167
logical :: is_alpha_special, is_beta_special
168+
#:endif
167169

168170
#:if rank == 1
169171
${t1}$, pointer :: xmat(:, :), ymat(:, :)
@@ -173,9 +175,10 @@ submodule (stdlib_specialmatrices) tridiagonal_matrices
173175
alpha_ = 1.0_${k1}$ ; if (present(alpha)) alpha_ = alpha
174176
beta_ = 0.0_${k1}$ ; if (present(beta)) beta_ = beta
175177
op_ = "N" ; if (present(op)) op_ = op
176-
178+
#:if t1.startswith('real')
177179
is_alpha_special = (alpha_ == 1.0_${k1}$ .or. alpha_ == 0.0_${k1}$ .or. alpha_ == -1.0_${k1}$)
178180
is_beta_special = (beta_ == 1.0_${k1}$ .or. beta_ == 0.0_${k1}$ .or. beta_ == -1.0_${k1}$)
181+
#:endif
179182

180183
! Prepare Lapack arguments.
181184
n = A%n ; ldx = n ; ldy = n ;

0 commit comments

Comments
 (0)