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

Fix Strang printing #19

Merged
merged 3 commits into from
Aug 18, 2017

Conversation

ChrisRackauckas
Copy link
Contributor

Makes a non-allocating getindex and makes the general getindex goes through this route. That in turn fixes the errors that occured when printing/displaying a Strang matrix.

src/strang.jl Outdated

getindex{T}(S::Strang{T}, i, j) = getindex(strang(T, S.n), i, j)
function getindex{T}(S::Strang{T}, i, j)
i == j && return 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabs -> spaces

@andreasnoack
Copy link
Member

Could you add a test for this as well?

@ChrisRackauckas
Copy link
Contributor Author

done

@andreasnoack andreasnoack merged commit c59afab into JuliaLinearAlgebra:master Aug 18, 2017
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 this pull request may close these issues.

2 participants