Skip to content

Commit a1c7def

Browse files
committed
Add StaticArrays to deps
While the load time of StaticArrays is rather high, be we can't take advantage of statically known measure sizes without a direct dependency on it. With StaticArrays we'll be able to handle many low-dimension problems without any heap allocations in the future.
1 parent 7367fcf commit a1c7def

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2424
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2525
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
2626
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
27+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2728
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2829
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2930
Tricks = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
@@ -58,5 +59,6 @@ SpecialFunctions = "2"
5859
Static = "0.8, 1"
5960
Statistics = "1"
6061
Test = "1"
62+
StaticArrays = "1.5"
6163
Tricks = "0.1"
6264
julia = "1.10"

src/MeasureBase.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ import ConstructionBase
2828
using ConstructionBase: constructorof
2929
using IntervalSets
3030

31+
using StaticArrays:
32+
StaticArray, StaticVector, StaticMatrix, SArray, SVector, SMatrix, SOneTo
33+
3134
using PrettyPrinting
3235
const Pretty = PrettyPrinting
3336

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
1313
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1414
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
1515
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
16+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1617
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1718
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

0 commit comments

Comments
 (0)