Represents an exception that is thrown when a computation cannot be completed because a Matrix is singular.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Class MatrixSingularException _
	Inherits DivideByZeroException
C#
public class MatrixSingularException : DivideByZeroException
C++
public ref class MatrixSingularException : public DivideByZeroException

Methods

IconTypeDescription
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetBaseException()
When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
GetHashCode()
Serves as a hash function for a particular type.
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
GetType()
Gets the runtime type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
ToString()
Creates and returns a string representation of the current exception.

Constructors

IconTypeDescription
MatrixSingularExceptionNew()
Constructs a new MatrixSingularException.
MatrixSingularExceptionNew(String)
Constructs a new MatrixSingularException.
MatrixSingularExceptionNew(String, Exception)
Constructs a new MatrixSingularException.
MatrixSingularExceptionNew(SerializationInfo, StreamingContext)
Initializes a new instance of the MatrixSingularException class with serialized data.

Properties

IconTypeDescription
Data
Gets a collection of key/value pairs that provide additional, user-defined information about the exception.
HelpLink
Gets or sets a link to the help file associated with this exception.
HResult
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
InnerException
Gets the Exception instance that caused the current exception.
Message
Gets a message that describes the current exception.
Source
Gets or sets the name of the application or the object that causes the error.
StackTrace
Gets a string representation of the frames on the call stack at the time the current exception was thrown.
TargetSite
Gets the method that throws the current exception.

Remarks

Operations like solving a system of simultaneous linear equations require the matrix to be of full rank. When it is not of full rank, and therefore singular, a MatrixSingularException is thrown.

You can avoid this exception by first calling the matrix or decomposition's IsSingular() method. If this method returns true, then proceding with the operation will result in a MatrixSingularException.

Inheritance Hierarchy

System.Object
  System.Exception
    System.SystemException
      System.ArithmeticException
        System.DivideByZeroException
          Extreme.Mathematics.LinearAlgebra.MatrixSingularException