Skip to content

Commit ed66486

Browse files
committed
Slightly better note on mixed vectors
1 parent 66de9ee commit ed66486

File tree

1 file changed

+1
-1
lines changed
  • docs/src/linear_systems

1 file changed

+1
-1
lines changed

docs/src/linear_systems/cg.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ x = cg(A, b)
2424
```
2525

2626
!!! note
27-
Make sure that all state vectors are stored on the GPU. CG will *not* copy the right-hand side to the GPU if the provided initial guess `x` is stored on the GPU.
27+
Make sure that all state vectors are stored on the GPU. For instance when calling `cg!(x, A, b)`, one might have an issue when `x` is stored on the GPU, while `b` is stored on the CPU -- IterativeSolvers.jl does not copy the vectors to the same device.
2828

2929

3030
## Implementation details

0 commit comments

Comments
 (0)