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
Copy file name to clipboardExpand all lines: README.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,47 +167,47 @@ Returns the rank of each stride.
167
167
Returns a tuple of indicators for whether each axis is dense.
168
168
An axis `i` of array `A` is dense if `stride(A, i) * size(A, i) == stride(A, j)` where `j` is the axis (if it exists) such that `stride_rank(A)[i] + 1 == stride_rank(A)[j]`.
169
169
170
-
## sdsize(A)
170
+
## ArrayInterface.size(A)
171
171
172
172
Returns the size of `A`. If the size of any axes are known at compile time,
173
-
these should be returned as `Static` numbers. For example:
173
+
these should be returned as `StaticInt`s. For example:
174
174
```julia
175
175
julia>using StaticArrays; using ArrayInterface: sdsize
176
176
177
177
julia> A =@SMatrixrand(3,4);
178
178
179
-
julia>sdsize(A)
180
-
(Static{3}(), Static{4}())
179
+
julia>ArrayInterface.size(A)
180
+
(StaticInt{3}(), StaticInt{4}())
181
181
```
182
182
183
-
## sdstrides(A)
183
+
## ArrayInterface.strides(A)
184
184
185
185
Returns the strides of array `A`. If any strides are known at compile time,
186
-
these should be returned as `Static` numbers. For example:
186
+
these should be returned as `StaticInt`s. For example:
187
187
```julia
188
188
julia>using ArrayInterface: sdstrides
189
189
190
190
julia> A =rand(3,4);
191
191
192
-
julia>sdstrides(A)
193
-
(Static{1}(), 3)
192
+
julia>ArrayInterface.strides(A)
193
+
(StaticInt{1}(), 3)
194
194
```
195
-
## sdoffsets(A)
195
+
## offsets(A)
196
196
197
197
Returns offsets of indices with respect to 0. If values are known at compile time,
198
-
it should return them as `Static` numbers.
199
-
For example, if `A isa Base.Matrix`, `sdoffsets(A) === (Static(1), Static(1))`.
198
+
it should return them as `StaticInt`s.
199
+
For example, if `A isa Base.Matrix`, `sdoffsets(A) === (StaticInt(1), StaticInt(1))`.
200
200
201
201
## can_avx(f)
202
202
203
203
Is the function `f` whitelisted for `LoopVectorization.@avx`?
204
204
205
-
## Static(N::Int)
205
+
## StaticInt(N::Int)
206
206
207
207
Creates a static integer with value known at compile time. It is a number,
208
-
supporting basic arithmetic. Many operations with two `Static` integers
209
-
will produce another `Static` integer. If one of the arguments to a
210
-
function call isn't static (e.g., `Static(4) + 3`) then the `Static`
208
+
supporting basic arithmetic. Many operations with two `StaticInt` integers
209
+
will produce another `StaticInt` integer. If one of the arguments to a
210
+
function call isn't static (e.g., `StaticInt(4) + 3`) then the `StaticInt`
0 commit comments