You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
^(A::BandedMatrix{T,<:Any,<:OneToInf}, p::Integer) where T =
31
+
if p <0
32
+
inv(A)^(-p)
33
+
elseif p ==0
34
+
Eye{T}(∞)
35
+
elseif p ==1
36
+
copy(A)
37
+
else
38
+
A*A^(p-1)
39
+
end
40
+
41
+
24
42
ifVERSION<v"1.2-"
25
43
import Base: has_offset_axes
26
44
require_one_based_indexing(A...) =!has_offset_axes(A...) ||throw(ArgumentError("offset arrays are not supported but got an array with index other than 1"))
0 commit comments