Click or drag to resize

MismatchedSizeException Class

Exception thrown when an operation is performed with operands whose sizes are incompatible with the operation.
Inheritance Hierarchy
SystemObject
  SystemException
    SystemApplicationException
      CenterSpace.NMath.CoreNMathException
        CenterSpace.NMath.CoreMismatchedSizeException

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class MismatchedSizeException : NMathException

The MismatchedSizeException type exposes the following members.

Constructors
 NameDescription
Public methodMismatchedSizeException Default constructor. Constructs an empty MismatchedSizeException instance.
Public methodMismatchedSizeException(String) Constructs a MismatchedSizeException instance with the specifed exception message.
Public methodMismatchedSizeException(String, Exception) Constructs a MismatchedSizeException instance with the specifed exception message and underlying (inner) exception.
Public methodMismatchedSizeException(String, DoubleMatrix, DoubleMatrix) Constructs a MismatchedSizeException instance with an error message containing the dimensions of the matrices.
Public methodMismatchedSizeException(String, DoubleVector, DoubleVector) Constructs a MismatchedSizeException instance with an error message containing the two incompatible vector lengths.
Public methodMismatchedSizeException(String, Int32, Int32) Constructs a MismatchedSizeException instance with an error message containing the two incompatible lengths.
Public methodMismatchedSizeException(String, Int64, Int64) Constructs a MismatchedSizeException instance with an error message containing the two incompatible lengths.
Public methodMismatchedSizeException(String, Int32, Int32, Int32) Constructs a MismatchedSizeException instance with an error message containing the three incompatible lengths.
Public methodMismatchedSizeException(String, Int64, Int64, Int64) Constructs a MismatchedSizeException instance with an error message containing the three incompatible lengths.
Public methodMismatchedSizeException(String, Int32, Int32, Int32, Int32) Constructs a MismatchedSizeException instance with an error message containing the dimensions of the two-dimensional operands.
Public methodMismatchedSizeException(String, Int64, Int64, Int64, Int64) Constructs a MismatchedSizeException instance with an error message containing the dimensions of the two-dimensional operands.
Top
Example
A MismatchedSizeException is thrown, for example, if you try to add two vectors with different lengths, or take the inner product of matrices A and B when the number of columns of A is not equal to the number of rows of B.
See Also