-
Notifications
You must be signed in to change notification settings - Fork 28
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
printing ApplyArray(*, A...) has exponential cost #259
Comments
potentially related #255 |
The cost is cut by 90% after #261, however the exponential growth is still not solved. |
Note if we want to support many operators we should add support for vector arguments eg ApplyArray(*, [A1,…,An]) but removing the need for ApplyStyle seems like a first step |
How do you resolve the ambiguity of ApplyArray(*, [A1,…,An])? since the vector could potentially be the only argument. Maybe add a new type of |
That probably won’t be the actual constructor. Note args is usually a Reduce doesn’t return an array does it? |
julia> reduce(+, [ones(5,5) for k in 1:10])
5×5 Matrix{Float64}:
10.0 10.0 10.0 10.0 10.0
10.0 10.0 10.0 10.0 10.0
10.0 10.0 10.0 10.0 10.0
10.0 10.0 10.0 10.0 10.0
10.0 10.0 10.0 10.0 10.0 |
In that case you want to support |
the same argument could also apply to broadcast, considering |
fixed. can't find the commit that does it. |
However,
getindex
is fastThe text was updated successfully, but these errors were encountered: