Closed omlins closed 2 years ago
This PR enables to handle @zeros, @rand and @ones with a datatype argument, e.g., @zeros(Float16, 2, 3) and without, e.g., @zeros(2, 3) by dispatching at runtime the right function invocation. This avoids any type instability.
@zeros
@rand
@ones
@zeros(Float16, 2, 3)
@zeros(2, 3)
This PR enables to handle
@zeros
,@rand
and@ones
with a datatype argument, e.g.,@zeros(Float16, 2, 3)
and without, e.g.,@zeros(2, 3)
by dispatching at runtime the right function invocation. This avoids any type instability.