brahmap.base.ShapeError¶
Bases: Exception
An exception class for handling array or operator shape mismatch errors.
This exception is raised when defining a linear operator with an invalid shape or when multiplying a linear operator by a vector of an incompatible shape.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
str
|
The descriptive error message detailing the shape mismatch |
required |