Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace


Extreme Optimization Mathematics Library for .NET

ComponentReadOnlyException Class

Represents an exception that is thrown when an attempt is made to set a component of a Vector or Matrix whose value is fixed due to the structure of the vector or matrix.

For a list of all members of this type, see ComponentReadOnlyException Members.

System.Object
   Exception
      SystemException
         InvalidOperationException
            ComponentReadOnlyException

[Visual Basic]
Public Class ComponentReadOnlyException
Inherits InvalidOperationException
[C#]
public class ComponentReadOnlyException : InvalidOperationException

Remarks

Many matrices have a clearly defined structure. For example, all elements above the diagonal of a lower triangular matrix are zero. If the matrix is also unit diagonal, then its diagonal elements have the fixed value of 1.

Changing the value of one of these elements would cause the vector or matrix to lose its structure. This is not allowed. If an attempt is made to do so, a ComponentReadOnlyException is thrown.

You can verify whether a component of a vector is writeable by calling its IsComponentWritable method. You can verify whether a component of a matrix is writeable by calling its IsComponentWritable method. These methods return false if the component is read-only, and a ComponentReadOnlyException would be thrown if an attempt was made to change its value.

Requirements

Namespace: Extreme.Mathematics.LinearAlgebra

Assembly: Extreme.Mathematics (in Extreme.Mathematics.dll)

See Also

ComponentReadOnlyException Members | Extreme.Mathematics.LinearAlgebra Namespace