-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array{T}(n)
constructors
#20114
Comments
+1 for |
It looks like some of those (mostly linalg) could use Ref instead, since they only wanted a one-element array. |
Aren't constants ok? E.g. |
I think I moved a lot of these to the new syntax, so I'll grab a broom... |
As of today:
|
There's a typo in the regex in the first post; this one catches more results:
|
Nice catch! :) |
I think we can call this closed, thanks gents |
As @tkelman (and others) have noted, it's faster to compile and infer leaf type constructors, like
Array{T,1}
, thanArray{T}
. The following uses ofArray{T}(n)
should accordingly be modified toArray{T,1}(n)
orVector{T}(n)
:This is an incomplete list; there are constructors of the form
Array{T}(x)
also that are not caught by this regular expression.cc @tkelman
The text was updated successfully, but these errors were encountered: