@@ -25,7 +25,6 @@ function kernelmatrix!(
25
25
X:: AbstractMatrix ;
26
26
obsdim:: Int = defaultobs
27
27
)
28
- @assert obsdim ∈ [1 , 2 ] " obsdim should be 1 or 2 (see docs of `kernelmatrix`))"
29
28
kernelmatrix! (K, κ, vec_of_vecs (X, obsdim = obsdim))
30
29
end
31
30
@@ -61,7 +60,6 @@ function kernelmatrix!(
61
60
Y:: AbstractMatrix ;
62
61
obsdim:: Int = defaultobs
63
62
)
64
- @assert obsdim ∈ [1 , 2 ] " obsdim should be 1 or 2 (see docs of `kernelmatrix`))"
65
63
kernelmatrix! (K, κ, vec_of_vecs (X, obsdim = obsdim), vec_of_vecs (Y, obsdim = obsdim))
66
64
67
65
end
@@ -102,7 +100,6 @@ function kernelmatrix(κ::SimpleKernel, X::AbstractMatrix; obsdim::Int = default
102
100
end
103
101
104
102
function kernelmatrix (κ:: Kernel , X:: AbstractMatrix ; obsdim:: Int = defaultobs)
105
- @assert obsdim ∈ [1 , 2 ] " obsdim should be 1 or 2 (see docs of `kernelmatrix`))"
106
103
kernelmatrix (κ, vec_of_vecs (X, obsdim = obsdim))
107
104
end
108
105
@@ -120,7 +117,6 @@ function kernelmatrix(
120
117
end
121
118
122
119
function kernelmatrix (κ:: Kernel , X:: AbstractMatrix , Y:: AbstractMatrix ; obsdim:: Int = defaultobs)
123
- @assert obsdim ∈ [1 , 2 ] " obsdim should be 1 or 2 (see docs of `kernelmatrix`))"
124
120
kernelmatrix (κ, vec_of_vecs (X, obsdim = obsdim), vec_of_vecs (Y, obsdim = obsdim))
125
121
end
126
122
@@ -138,7 +134,6 @@ function kerneldiagmatrix(
138
134
X:: AbstractMatrix ;
139
135
obsdim:: Int = defaultobs
140
136
)
141
- @assert obsdim ∈ [1 ,2 ] " obsdim should be 1 or 2 (see docs of kernelmatrix))"
142
137
kerneldiagmatrix (κ, vec_of_vecs (X, obsdim = obsdim))
143
138
end
144
139
@@ -157,7 +152,6 @@ function kerneldiagmatrix!(
157
152
X:: AbstractMatrix ;
158
153
obsdim:: Int = defaultobs
159
154
)
160
- @assert obsdim ∈ [1 ,2 ] " obsdim should be 1 or 2 (see docs of kernelmatrix))"
161
155
if length (K) != size (X,obsdim)
162
156
throw (DimensionMismatch (" Dimensions of the target array K $(size (K)) are not consistent with X $(size (X)) " ))
163
157
end
0 commit comments