|
53 | 53 | initialize!(system, semi) = system |
54 | 54 |
|
55 | 55 | # This should not be dispatched by system type. We always expect to get a column of `A`. |
56 | | -@propagate_inbounds function extract_svector(A, system, i...) |
57 | | - extract_svector(A, Val(ndims(system)), i...) |
| 56 | +@propagate_inbounds function extract_svector(A, system, i) |
| 57 | + extract_svector(A, Val(ndims(system)), i) |
58 | 58 | end |
59 | 59 |
|
60 | 60 | # Return the `i`-th column of the array `A` as an `SVector`. |
61 | | -@inline function extract_svector(A, ::Val{NDIMS}, i...) where {NDIMS} |
| 61 | +@inline function extract_svector(A, ::Val{NDIMS}, i) where {NDIMS} |
62 | 62 | # Explicit bounds check, which can be removed by calling this function with `@inbounds` |
63 | | - @boundscheck checkbounds(A, NDIMS, i...) |
| 63 | + @boundscheck checkbounds(A, NDIMS, i) |
64 | 64 |
|
65 | 65 | # Assume inbounds access now |
66 | | - return SVector(ntuple(@inline(dim->@inbounds A[dim, i...]), NDIMS)) |
| 66 | + return SVector(ntuple(@inline(dim->@inbounds A[dim, i]), NDIMS)) |
67 | 67 | end |
68 | 68 |
|
69 | 69 | # Return `A[:, :, i]` as an `SMatrix`. |
|
0 commit comments