StaticArrays.jl icon indicating copy to clipboard operation
StaticArrays.jl copied to clipboard

Statically sized arrays for Julia

Results 143 StaticArrays.jl issues
Sort by recently updated
recently updated
newest added

```julia M = 10 a = @SVector [1 for _ in 1:M] # working ``` put it in a function: ```julia function test() M = 10 a = @SVector [1...

```julia julia> map(+,[1,2,3],1:4) 3-element Vector{Int64}: 2 4 6 julia> map(+,SVector(1,2,3),1:4) ERROR: DimensionMismatch: Sizes (Size(3,), (4,)) of input arrays do not match Stacktrace: [1] _throw_size_mismatch(::SVector{3, Int64}, ::Vararg{Any}) @ StaticArrays C:\Users\pty\.julia\packages\StaticArrays\4WE4t\src\traits.jl:116 [2]...

On julia nightly ```julia julia> @time using StaticArrays 1.160173 seconds (1.95 M allocations: 142.974 MiB, 34.39% compilation time) ``` ```julia julia> using SnoopCompileCore julia> invalidations = @snoopr using StaticArrays; julia>...

StaticArrays does some piracy, at least in `similar()`: https://github.com/JuliaArrays/StaticArrays.jl/blob/07c12450d1b3481dda4b503564ae4a5cb4e27ce4/src/abstractarray.jl#L141-L146 Here, ```julia HeterogeneousShapeTuple = Tuple{Vararg{Union{Integer, Base.OneTo, SOneTo} }} ``` and it fits eg `Tuple{}`, `Tuple{Int}`, `Tuple{Int, Int}`. It's generally a good...

`Base.copymutable(a::SVector)` currently works using its default method, which calls `similar(a)` followed by `copyto!`. Might it be slightly faster to have a specialized `copymutable(a)` for `isbits` types (#799) that calls `MVector(a)`?

While running my program I have found x=A\b sometimes gives a different result when using StaticArrays. A is a 3x3 Matrix and b is a 3x1 Matrix. ``` A =...

I get subtly different matrix multiplication results in different contexts in Julia 1.10. This is the simplest example I've come up with so far: ```julia using StaticArrays struct Foo{A} array::A...

The constructor docstring for `SMatrix` indicates that not all parameters are needed if they are inferrable from the input. In particular, `L` is inferrable from `S1` and `S2`. ```julia help?>...

This provides a performance boost for small matrices: On master ```julia julia> S = SMatrix{3,3}(1:9) 3×3 SMatrix{3, 3, Int64, 9} with indices SOneTo(3)×SOneTo(3): 1 4 7 2 5 8 3...

When an `MMatrix` or `SMatrix` is of dimension 1-by-1, it is detected as being positive definite even if its entry is 0, and its cholesky decomposition does not fail. Below...