Skip to content

do not allocate in x_converged#54

Open
longemen3000 wants to merge 1 commit into
JuliaNLSolvers:masterfrom
longemen3000:patch-4
Open

do not allocate in x_converged#54
longemen3000 wants to merge 1 commit into
JuliaNLSolvers:masterfrom
longemen3000:patch-4

Conversation

@longemen3000
Copy link
Copy Markdown
Contributor

it changes y = x .- z for an iterator. ideally, a custom struct could be provided for this, i imagine some problems could arise if using CUArrays?

@pkofod
Copy link
Copy Markdown
Member

pkofod commented May 3, 2023

I suppose preallocating y is an alternative ?

@longemen3000
Copy link
Copy Markdown
Contributor Author

it is an alternative. Ideally, there should be a way to calculate norm(dx) without allocating somewhere, but the last time i asked, that was the agreed-upon solution

@pkofod
Copy link
Copy Markdown
Member

pkofod commented Jun 12, 2023

tests failed it seems

@pkofod
Copy link
Copy Markdown
Member

pkofod commented Jun 12, 2023

ah that was the anderson test

@pkofod pkofod closed this Jun 12, 2023
@pkofod pkofod reopened this Jun 12, 2023
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 12, 2023

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@ararslan
Copy link
Copy Markdown
Contributor

Looks like CI passed

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