IncompatibleDimensionsException
com.phasmid.majabigwaduce.matrix.IncompatibleDimensionsException
case class IncompatibleDimensionsException(cols: Int, rows: Int) extends MatrixException
Exception thrown to indicate that two matrices have incompatible dimensions for the operation being performed.
This exception generally occurs when the number of columns in the left-hand side (LHS) matrix does not match the number of rows in the right-hand side (RHS) matrix, a requirement for operations like matrix multiplication.
Value parameters
- cols
-
The number of columns in the LHS matrix.
- rows
-
The number of rows in the RHS matrix.
Attributes
- Throws
-
IncompatibleDimensionsException
when matrix dimensions are not suitable for the intended operation.
- Graph
-
- Supertypes
-
trait Producttrait Equalsclass MatrixExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
Members list
In this article