# Taking Quaternions Seriously

**URL:** <https://discourse.julialang.org/t/taking-quaternions-seriously/44834>\
**Category:** Numerics\
**Created:** [August 12, 2020, 10:45pm UTC](https://discourse.julialang.org/t/taking-quaternions-seriously/44834 "2020-08-12T22:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 58

<div class="post-metadata">

**Author:** ![chakravala](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chakravala/32/6832_2.png) [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Post date:** [August 25, 2020, 6:07pm UTC](https://discourse.julialang.org/t/taking-quaternions-seriously/44834/58 "2020-08-25T18:07:34Z")

</div>

> [@JeffreySarnoff](#):
>
> `fieldvalues(q::Q) = (q.s, q.i, q.j, q.k) `

in my API, this would be obtained with the already existing `values` method instead of `fieldvalues`.

in newest version of `AbstractTensors` there is a simplified variant of `StaticVector` implemented

> [@Help with simplified StaticArrays implementation](https://discourse.julialang.org/t/help-with-simplified-staticarrays-implementation/45522):
>
> Poblem: [StaticArrays.jl](https://github.com/JuliaArrays/StaticArrays.jl) is too large of a dependency and has too many extra features. To simplify my dependencies, I need a simplified variant of SVector, MVector, and SizedVector. Solution: In [AbstractTensors.jl](https://github.com/chakravala/AbstractTensors.jl) they are replaced with Values, Variables, and FixedVector. julia\> using AbstractTensors # loads 10x faster than StaticArrays julia\> a = Values(1,2,3) 3-element Values{3,Int64} with indices SOneTo(3): 1 2 3 My goal is to have an implementation that is robust as in StaticArrays b…

which loads much faster than `StaticArrays` and provides all the basic features needed for `Values`.

```julia
AbstractTensors.Values # simplified SVector variant
AbstractTensors.values # alternative to fieldvalues

```

my proposal is using simple `Values` and `values` for internal values of `TensorAlgebra`

---

_[View the full topic](https://discourse.julialang.org/t/taking-quaternions-seriously/44834)._
