File tree Expand file tree Collapse file tree 7 files changed +37
-2
lines changed Expand file tree Collapse file tree 7 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import xobjects as xo
27import scipy .sparse as sp
38import numpy as np
1722solver(A) # Performs decomposition/factorization
1823solver.solve(b) # Solves Ax = b using precomputed factors
1924
20- For optimal performance accross backends b should be a column-major (F Contiguous)
25+ For optimal performance across backends b should be a column-major (F Contiguous)
2126array or vector.
2227
2328The intended interface for this module is:
3439For development and convenience purposes xo.sparse provides the:
3540xo.sparse.solvers module
3641
37- which provides the following options :
42+ which provides the following:
3843xo.sparse.solvers.CPU.
3944 - scipysplu : Alias for scipy SuperLU
4045 - KLUSuperLU : Alias for PyKLU
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import numpy as np
27import scipy .sparse as sp
38import xobjects as xo
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import scipy .sparse
27from numpy import ndarray as nparray
38from typing import Optional , Literal , Union
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import numpy .linalg as npl
27import scipy .sparse .linalg as scspl
38from scipy .sparse import issparse
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import cupy as cp
27import cupyx .scipy .sparse as sp
38import nvmath
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16import cupy as _cupy
27import numpy as _numpy
38import cupyx .scipy .sparse
Original file line number Diff line number Diff line change 1+ # copyright ################################# #
2+ # This file is part of the Xobjects Package. #
3+ # Copyright (c) CERN, 2021. #
4+ # ########################################### #
5+
16from abc import ABC , abstractmethod
27
38class SuperLUlikeSolver (ABC ):
You can’t perform that action at this time.
0 commit comments