JuliaLinearAlgebra / IterativeSolvers.jl

Iterative algorithms for solving linear systems, eigensystems, and singular value problems
MIT License
401 stars 106 forks source link

Query about using nested functions #204

Closed rkumar-slim closed 6 years ago

rkumar-slim commented 6 years ago

I am trying to use CG from this solver. I have "A" as matrix free operator but it is build using nested functions. In test folder, there are couple of example on how to build A using linearmap but there matrices are very simple. Is linearmap will work for "A" inside which there are several function calls? Is there any example on how to setup that or I should just pass that function A (also A_ldiv_B) to linearmap and it will take care of itself

andreasnoack commented 6 years ago

Hi @rkumar-slim. Please use discourse.julialang.org for questions.