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.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Class ComponentReadOnlyException _ Inherits InvalidOperationException |
| C# |
|---|
public class ComponentReadOnlyException : InvalidOperationException |
| C++ |
|---|
public ref class ComponentReadOnlyException : public InvalidOperationException |
Methods
| Icon | Type | Description |
|---|---|---|
| Equals(Object) | ||
| Finalize() | ||
| 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
| Icon | Type | Description |
|---|---|---|
| ComponentReadOnlyExceptionNew() |
Constructs a new ComponentReadOnlyException.
| |
| ComponentReadOnlyExceptionNew(String) |
Constructs a new ComponentReadOnlyException.
| |
| ComponentReadOnlyExceptionNew(String, Exception) |
Constructs a new ComponentReadOnlyException.
| |
| ComponentReadOnlyExceptionNew(SerializationInfo, StreamingContext) |
Initializes a new instance of the
ComponentReadOnlyException class with serialized
data. |
Properties
| Icon | Type | Description |
|---|---|---|
| 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
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(Int32) method. You can verify whether a component of a matrix is writeable by calling its IsComponentWritable(Int32, Int32) 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.
Inheritance Hierarchy
System.Object
System.Exception
System.SystemException
System.InvalidOperationException
Extreme.Mathematics.LinearAlgebra.ComponentReadOnlyException
System.Exception
System.SystemException
System.InvalidOperationException
Extreme.Mathematics.LinearAlgebra.ComponentReadOnlyException