Class MatrixSingularException
Exception thrown when a singular matrix is encountered.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Math
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[Serializable]
public class MatrixSingularException : Exception, ISerializable
Constructors
MatrixSingularException()
Initializes a new instance of the MatrixSingularException class.
Declaration
public MatrixSingularException()
MatrixSingularException(Matrix)
Construct the exception.
Declaration
public MatrixSingularException(Matrix m)
Parameters
Type | Name | Description |
---|---|---|
Matrix | m | The offending matrix. |
MatrixSingularException(SerializationInfo, StreamingContext)
Initializes a new instance of the MatrixSingularException class.
Declaration
protected MatrixSingularException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The object that holds the serialized object data. |
StreamingContext | context | The contextual information about the source or destination. |
MatrixSingularException(String, Exception)
Initializes a new instance of the MatrixSingularException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public MatrixSingularException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message that explains the reason for the exception. |
Exception | inner | The exception that is the cause of the current exception. |
Properties
Offender
Gets the singular matrix that caused the exception.
Declaration
public Matrix Offender { get; }
Property Value
Type | Description |
---|---|
Matrix |