@@ -525,15 +525,15 @@ Allocate a storage array appropriate for the computational backend.
525525!!! note 
526526    Backend implementations **must** implement `allocate(::NewBackend, T, dims::Tuple)` 
527527""" 
528- allocate (backend:: Backend , T, dims... ) =  allocate (backend, T, dims)
529- allocate (backend:: Backend , T, dims:: Tuple ) =  throw (MethodError (allocate, (backend, T, dims)))
528+ allocate (backend:: Backend , T:: Type , dims... ) =  allocate (backend, T, dims)
529+ allocate (backend:: Backend , T:: Type , dims:: Tuple ) =  throw (MethodError (allocate, (backend, T, dims)))
530530
531531""" 
532532    zeros(::Backend, Type, dims...)::AbstractArray 
533533
534534Allocate a storage array appropriate for the computational backend filled with zeros. 
535535""" 
536- zeros (backend:: Backend , T, dims... ) =  zeros (backend, T, dims)
536+ zeros (backend:: Backend , T:: Type , dims... ) =  zeros (backend, T, dims)
537537function  zeros (backend:: Backend , :: Type{T} , dims:: Tuple ) where  {T}
538538    data =  allocate (backend, T, dims... )
539539    fill! (data, zero (T))
545545
546546Allocate a storage array appropriate for the computational backend filled with ones. 
547547""" 
548- ones (backend:: Backend , T, dims... ) =  ones (backend, T, dims)
548+ ones (backend:: Backend , T:: Type , dims... ) =  ones (backend, T, dims)
549549function  ones (backend:: Backend , :: Type{T} , dims:: Tuple ) where  {T}
550550    data =  allocate (backend, T, dims)
551551    fill! (data, one (T))
0 commit comments