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
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