@@ -40,10 +40,10 @@ Base.IndexStyle(::Type{<:Partials}) = IndexLinear()
40
40
@inline Base. one (partials:: Partials ) = one (typeof (partials))
41
41
@inline Base. one (:: Type{Partials{N,V}} ) where {N,V} = Partials {N,V} (one_tuple (NTuple{N,V}))
42
42
43
- @inline Base . rand (partials:: Partials ) = rand (typeof (partials))
44
- @inline Base . rand (:: Type{Partials{N,V}} ) where {N,V} = Partials {N,V} (rand_tuple (NTuple{N,V}))
45
- @inline Base . rand (rng:: AbstractRNG , partials:: Partials ) = rand (rng, typeof (partials))
46
- @inline Base . rand (rng:: AbstractRNG , :: Type{Partials{N,V}} ) where {N,V} = Partials {N,V} (rand_tuple (rng, NTuple{N,V}))
43
+ @inline Random . rand (partials:: Partials ) = rand (typeof (partials))
44
+ @inline Random . rand (:: Type{Partials{N,V}} ) where {N,V} = Partials {N,V} (rand_tuple (NTuple{N,V}))
45
+ @inline Random . rand (rng:: AbstractRNG , partials:: Partials ) = rand (rng, typeof (partials))
46
+ @inline Random . rand (rng:: AbstractRNG , :: Type{Partials{N,V}} ) where {N,V} = Partials {N,V} (rand_tuple (rng, NTuple{N,V}))
47
47
48
48
Base. isequal (a:: Partials{N} , b:: Partials{N} ) where {N} = isequal (a. values, b. values)
49
49
Base.:(== )(a:: Partials{N} , b:: Partials{N} ) where {N} = a. values == b. values
0 commit comments