Class SingularException
Exception thrown when a matrix is singular.
Implements
Inherited Members
Namespace: SpiceSharp.Algebra
Assembly: SpiceSharp.dll
Syntax
[Serializable]
public class SingularException : AlgebraException, ISerializable
Constructors
SingularException()
Initializes a new instance of the SingularException class.
Declaration
public SingularException()
SingularException(int)
Initializes a new instance of the SingularException class.
Declaration
public SingularException(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The row/column index where the exception occurred. |
SingularException(SerializationInfo, StreamingContext)
Initializes a new instance of the SingularException class.
Declaration
protected SingularException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info. |
StreamingContext | context | The streaming context. |
SingularException(string)
Initializes a new instance of the SingularException class.
Declaration
public SingularException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
SingularException(string, Exception)
Initializes a new instance of the SingularException class.
Declaration
public SingularException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The error message that explains the reason for the exception. |
Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Properties
Index
Gets the index where the first zero-diagonal element was found.
Declaration
public virtual int Index { get; }
Property Value
Type | Description |
---|---|
int |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The serialization info |
StreamingContext | context | The streaming context |