Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Type of y_out #78

Closed
hombit opened this issue Oct 12, 2015 · 2 comments
Closed

Type of y_out #78

hombit opened this issue Oct 12, 2015 · 2 comments

Comments

@hombit
Copy link

hombit commented Oct 12, 2015

Why type of y_out is Array{Array{T,1},1}? Maybe it should be 2-D array: Array{T,2}?

@tomasaschan
Copy link
Contributor

This was a concious decision based on discussions here and in other places. Basically, it's because the type of y0 could potentially be any type that supports a few basic mathematical operations, and not just scalar Numbers or vectors. In other words, there's no guarantee that y_out would fit in an Array{T,2}.

You can always get the matrix form by using hcat(y_out...) if that's important for you in the next step.

@hombit
Copy link
Author

hombit commented Oct 12, 2015

Thank you for the fast answer!

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

No branches or pull requests

2 participants