Skip to content

Commit af1f749

Browse files
committed
Fix file formatting
1 parent 0310981 commit af1f749

File tree

7 files changed

+37
-2
lines changed

7 files changed

+37
-2
lines changed

examples/solve_sparse_system.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import xobjects as xo
27
import scipy.sparse as sp
38
import numpy as np
@@ -17,7 +22,7 @@
1722
solver(A) # Performs decomposition/factorization
1823
solver.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)
2126
array or vector.
2227
2328
The intended interface for this module is:
@@ -34,7 +39,7 @@
3439
For development and convenience purposes xo.sparse provides the:
3540
xo.sparse.solvers module
3641
37-
which provides the following options:
42+
which provides the following:
3843
xo.sparse.solvers.CPU.
3944
- scipysplu : Alias for scipy SuperLU
4045
- KLUSuperLU : Alias for PyKLU

tests/test_sparse_solvers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import numpy as np
27
import scipy.sparse as sp
38
import xobjects as xo

xobjects/sparse/_sparse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import scipy.sparse
27
from numpy import ndarray as nparray
38
from typing import Optional, Literal, Union

xobjects/sparse/_test_helpers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import numpy.linalg as npl
27
import scipy.sparse.linalg as scspl
38
from scipy.sparse import issparse

xobjects/sparse/solvers/CUDA/_cuDSSLU.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import cupy as cp
27
import cupyx.scipy.sparse as sp
38
import nvmath

xobjects/sparse/solvers/CUDA/_luLU.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
import cupy as _cupy
27
import numpy as _numpy
38
import cupyx.scipy.sparse

xobjects/sparse/solvers/_abstract_solver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# copyright ################################# #
2+
# This file is part of the Xobjects Package. #
3+
# Copyright (c) CERN, 2021. #
4+
# ########################################### #
5+
16
from abc import ABC, abstractmethod
27

38
class SuperLUlikeSolver(ABC):

0 commit comments

Comments
 (0)