Skip to content

Conversation

@kdw503
Copy link
Member

@kdw503 kdw503 commented Jan 31, 2019

No description provided.

y = convert_to_fixed(SVector{size(P.aqh.Qs[1],1),eltype(yv)}, yv, size(P.aqh.Qs))
penalty!(y, P.λt, ϕs)
y
reshape(reinterpret(eltype(eltype(y)), vec(y)), size(yv))
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't this line just undo the effects of convert_to_fixed? If so, and if pointer(y) == pointer(yv), I think you can just return yv here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I got it.

@timholy timholy merged commit 7e40a63 into master Feb 2, 2019
@timholy timholy deleted the dwk/dev branch February 2, 2019 08:31
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.

3 participants