forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lang] Refactor cg solvers (taichi-dev#7911)
Issue: taichi-dev#7837 ### Brief Summary As described in Issue taichi-dev#7837 , I first implemented Plan # 1 to enforce a more consistent naming for the current solvers. All solver code are untouched, except for the naming: ``` ti.linalg.SparseSolver => no change ti.linalg.CG => ti.linalg.SparseCG ti.linalg.taichi_cg_solver => ti.linalg.MatrixFreeCG ``` The Python test scripts are also updated accordingly. This doesn't mean Plan # 3 is abandoned though: we can unify `SparseCG` and `MatrixFreeCG` in the future if that's the route we want. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
398dea9
commit ba0e3ea
Showing
5 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
"""Taichi support module for sparse matrix operations. | ||
""" | ||
from taichi.linalg.cg import CG | ||
from taichi.linalg.sparse_cg import SparseCG | ||
from taichi.linalg.sparse_matrix import * | ||
from taichi.linalg.sparse_solver import SparseSolver | ||
from taichi.linalg.taichi_cg import * | ||
from taichi.linalg.matrixfree_cg import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters