-
Currently the user has to define a a `SMatrix` with something like
```julia
elements = (:Si, :O)
NZ = length(elements)
function make_rin0cut(zi, zj)
r0 = ACE1x.get_r0(zi, zj)
return (ri…
-
Is this expected behavior? Tested on StaticArrays@v1.6.3.
```julia
using StaticArrays
# This gives a surprising error:
A = zeros(SMatrix{3,3,Float64}, 2, 3)
reinterpret(reshape, Float64, A) #…
-
I am unable to compute the determinant of an SMatrix (even if the dimensions are equal). Here is the error I get:
error[E0599]: the method `determinant` exists for reference `&Matrix`, but its tr…
-
MWE:
```julia
function instruct2!(state, U, loc)
a, c, b, d = U
step = 1
-
With the new `TracerSparsityDetector` from SparseConnectivityTracer, `if` blocks are not supported if they involve an input variable. They must be replaced with `ifelse` statements, which are compatib…
-
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?> SMa…
-
When using `@code_warntype` to check for type instabilities, sometimes some instability is induced by accessing incompletely specified type parameters/fields:
```julia
julia> using StaticArrays
…
-
Why does this fail
```julia
julia> function f3(x)::SMatrix{2,2,Float64,4}
[ x x^2; √x sin(x) ]
end
julia> Zygote.gradient(x->sum(f3(x)),3.3) # ERROR: Need an adjoint for const…
-
```
julia> pinv(a)
ERROR: MethodError: no method matching pinv(::StaticArrays.SArray{Tuple{2,2},Int64,2,4})
```
-
Easy TODO that means doing the following:
- Make sure all functions that return dynamical systems do not pass Jacobian into the constructors
- Replace all calls to `@SMatrix` to regular `SMatrix` …