Skip to content
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

Conversion of Array{'type',1} to Type{'type'} #12923

Closed
IanButterworth opened this issue Sep 2, 2015 · 1 comment
Closed

Conversion of Array{'type',1} to Type{'type'} #12923

IanButterworth opened this issue Sep 2, 2015 · 1 comment

Comments

@IanButterworth
Copy link
Sponsor Member

Would it be a good idea if arrays of length 1 are convertible to their nested type? i.e. to avoid errors like:
'convert' has no method matching convert(::Type{Float64}, ::Array{Float64,1})

Perhaps it could be quite a nice shortcut?

i.e.

x = Array(Float64,10,10,10)
y = ones(Float64,10,10,10)

x[1,1,1] = mean(y[:,1,1],1)
@IanButterworth
Copy link
Sponsor Member Author

Should've searched harder first.. Related: #3262 #4270 #2591 #2686 #4797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant