Skip to content

Commit ba5b005

Browse files
committed
integration check that we are actually running the custom LA code
1 parent 6f66af2 commit ba5b005

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/LinearAlgebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ julia> B = view(A, 2:2:4)
287287
4
288288
289289
julia> LinearAlgebra.stride1(B)
290-
2
290+
3
291291
```
292292
"""
293293
stride1(x) = stride(x,1)

src/tridiag.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ julia> B = reshape([[1 2; 2 3], [1 2; 3 4], [1 3; 2 4], [1 2; 2 3]], 2, 2);
104104
julia> SymTridiagonal(B)
105105
2×2 SymTridiagonal{Matrix{Int64}, Vector{Matrix{Int64}}}:
106106
[1 2; 2 3] [1 3; 2 4]
107-
[1 2; 3 4] [1 2; 2 3]
107+
[1 2; 3 4] [1 2; 2 1]
108108
```
109109
"""
110110
function (::Type{SymTri})(A::AbstractMatrix) where {SymTri <: SymTridiagonal}
@@ -138,6 +138,7 @@ AbstractMatrix{T}(S::SymTridiagonal) where {T} = SymTridiagonal{T}(S)
138138
AbstractMatrix{T}(S::SymTridiagonal{T}) where {T} = copy(S)
139139

140140
function Matrix{T}(M::SymTridiagonal) where T
141+
error()
141142
n = size(M, 1)
142143
Mf = Matrix{T}(undef, n, n)
143144
n == 0 && return Mf

0 commit comments

Comments
 (0)