@@ -541,8 +541,8 @@ allocates an array using unified memory if the backend supports it. Use
541541!!! note
542542 Backend implementations **must** implement `allocate(::NewBackend, T, dims::Tuple)`
543543"""
544- allocate (backend:: Backend , T:: Type , dims... ; unified= false ) = allocate (backend, T, dims; unified)
545- allocate (backend:: Backend , T:: Type , dims:: Tuple ; unified= false ) = throw (MethodError (allocate, (backend, T, dims)))
544+ allocate (backend:: Backend , T:: Type , dims... ; unified = false ) = allocate (backend, T, dims; unified)
545+ allocate (backend:: Backend , T:: Type , dims:: Tuple ; unified = false ) = throw (MethodError (allocate, (backend, T, dims)))
546546
547547"""
548548 zeros(::Backend, Type, dims...; unified=false)::AbstractArray
@@ -551,7 +551,7 @@ Allocate a storage array appropriate for the computational backend filled with z
551551`unified` allocates an array using unified memory if the backend supports it.
552552"""
553553zeros (backend:: Backend , T:: Type , dims... ; kwargs... ) = zeros (backend, T, dims; kwargs... )
554- function zeros (backend:: Backend , :: Type{T} , dims:: Tuple ; unified= false ) where {T}
554+ function zeros (backend:: Backend , :: Type{T} , dims:: Tuple ; unified = false ) where {T}
555555 data = allocate (backend, T, dims... ; unified)
556556 fill! (data, zero (T))
557557 return data
@@ -564,7 +564,7 @@ Allocate a storage array appropriate for the computational backend filled with o
564564`unified` allocates an array using unified memory if the backend supports it.
565565"""
566566ones (backend:: Backend , T:: Type , dims... ; kwargs... ) = ones (backend, T, dims; kwargs... )
567- function ones (backend:: Backend , :: Type{T} , dims:: Tuple ; unified= false ) where {T}
567+ function ones (backend:: Backend , :: Type{T} , dims:: Tuple ; unified = false ) where {T}
568568 data = allocate (backend, T, dims; unified)
569569 fill! (data, one (T))
570570 return data
0 commit comments