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

Returned eltype of matrix is float32 when Int was expected #44

Closed
macd opened this issue Jul 28, 2019 · 1 comment · Fixed by #60
Closed

Returned eltype of matrix is float32 when Int was expected #44

macd opened this issue Jul 28, 2019 · 1 comment · Fixed by #60

Comments

@macd
Copy link

macd commented Jul 28, 2019

Using integer vectors to construct a Toeplitz matrix results in Float32 eltypes. Not at all what I was expecting. I can of course do Toeplitz{Int}([1,2,3], [1,2,3]), but still...

julia v1.3> a = Toeplitz([1,2,3], [1,2,3])
3×3 Toeplitz{Float32,Complex{Float32}}:
 1.0  2.0  3.0
 2.0  1.0  2.0
 3.0  2.0  1.0

julia v1.3> eltype(a)
Float32
@dlfivefifty
Copy link
Member

dlfivefifty commented Jul 28, 2019

This is one of the motivations for #36

EDIT: Sorry, just saw that Toeplitz{Int} works so this probably not relevant to that issue.

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

Successfully merging a pull request may close this issue.

2 participants