Skip to content

Conversation

ChrisRackauckas
Copy link
Member

No description provided.

@ChrisRackauckas ChrisRackauckas merged commit 590d30f into main May 18, 2025
6 of 10 checks passed
@ChrisRackauckas ChrisRackauckas deleted the matrixfree branch May 18, 2025 02:17
Comment on lines +105 to +109
A = [-2.0 1 0 0 0
1 -2 1 0 0
0 1 -2 1 0
0 0 1 -2 1
0 0 0 1 -2]
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
A = [-2.0 1 0 0 0
1 -2 1 0 0
0 1 -2 1 0
0 0 1 -2 1
0 0 0 1 -2]
A = [-2.0 1 0 0 0
1 -2 1 0 0
0 1 -2 1 0
0 0 1 -2 1
0 0 0 1 -2]

non-constant operators, operator algebras, and many more features). This is done by:

```@example linsys1
function Afunc!(w,v,u,p,t)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
function Afunc!(w,v,u,p,t)
function Afunc!(w, v, u, p, t)

function Afunc!(w,v,u,p,t)
w[1] = -2v[1] + v[2]
for i in 2:4
w[i] = v[i-1] - 2v[i] + v[i+1]
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
w[i] = v[i-1] - 2v[i] + v[i+1]
w[i] = v[i - 1] - 2v[i] + v[i + 1]

nothing
end

function Afunc!(v,u,p,t)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
function Afunc!(v,u,p,t)
function Afunc!(v, u, p, t)


function Afunc!(v,u,p,t)
w = zeros(5)
Afunc!(w,v,u,p,t)
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
Afunc!(w,v,u,p,t)
Afunc!(w, v, u, p, t)


```@example linsys1
v = rand(5)
mfopA*v - A*v
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
mfopA*v - A*v
mfopA * v - A * v

```

!!! note

Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

Comment on lines +162 to +164
Note that not all methods can use a matrix-free operator. For example, `LUFactorization()` requires a matrix. If you use an
invalid method, you will get an error. The methods particularly from KrylovJL are the ones preferred for these cases
(and are defaulted to).
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
Note that not all methods can use a matrix-free operator. For example, `LUFactorization()` requires a matrix. If you use an
invalid method, you will get an error. The methods particularly from KrylovJL are the ones preferred for these cases
(and are defaulted to).
Note that not all methods can use a matrix-free operator. For example, `LUFactorization()` requires a matrix. If you use an
invalid method, you will get an error. The methods particularly from KrylovJL are the ones preferred for these cases
(and are defaulted to).

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.

1 participant