Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
"""
|
||||
Exceptions raised by the matrix module.
|
||||
"""
|
||||
|
||||
|
||||
class MatrixError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class ShapeError(ValueError, MatrixError):
|
||||
"""Wrong matrix shape"""
|
||||
pass
|
||||
|
||||
|
||||
class NonSquareMatrixError(ShapeError):
|
||||
pass
|
||||
|
||||
|
||||
class NonInvertibleMatrixError(ValueError, MatrixError):
|
||||
"""The matrix in not invertible (division by multidimensional zero error)."""
|
||||
pass
|
||||
|
||||
|
||||
class NonPositiveDefiniteMatrixError(ValueError, MatrixError):
|
||||
"""The matrix is not a positive-definite matrix."""
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue