We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b99b91 commit 37b8ba2Copy full SHA for 37b8ba2
src/StaticArrays.jl
@@ -7,9 +7,15 @@ import Base: @_inline_meta, @_propagate_inbounds_meta, @_pure_meta, @propagate_i
7
import Base: getindex, setindex!, size, similar, vec, show, length, convert, promote_op,
8
promote_rule, map, map!, reduce, reducedim, mapreducedim, mapreduce, broadcast,
9
broadcast!, conj, hcat, vcat, ones, zeros, one, reshape, fill, fill!, inv,
10
- iszero, sum, prod, count, any, all, minimum, maximum, extrema, mean,
+ iszero, sum, prod, count, any, all, minimum, maximum, extrema,
11
copy, read, read!, write
12
13
+if VERSION >= v"0.7.0-beta.85"
14
+ import Statistics: mean
15
+else
16
+ import Base: mean
17
+end
18
+
19
using Random
20
import Random: rand, randn, randexp, rand!, randn!, randexp!
21
using Core.Compiler: return_type
test/mapreduce.jl
@@ -1,4 +1,7 @@
1
using StaticArrays, Test
2
3
4
5
6
@testset "Map, reduce, mapreduce, broadcast" begin
@testset "map and map!" begin
0 commit comments