Matrix
ReferencesConstructors
Initializes a new instance of the matrix.
Exceptions:
| ArgumentOutOfRangeException | If either rowCount, or columnCount or both are negative. |
Finalizer
~Matrix
#Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().
~Matrix()
Properties
Gets a value indicating whether the matrix is column orthogonal.
Gets a value indicating whether the matrix is column orthonormal.
Gets a value indicating whether the matrix is row orthogonal.
Gets a value indicating whether the matrix is row orthonormal.
Gets a value indicating whether this matrix has the same number of rows and columns. 0x0 matrices are not considered square.
Indexers
Methods
Solves M*x=b where M is upper triangular with a unit diagonal and b is a column of values.
Returns: Array of length ColumnCount on success. null on error.
Solves M*x=b where M is upper triangular with a unit diagonal and b is a column of 3d points.
Returns: Array of length ColumnCount on success. null on error.
Actively reclaims unmanaged resources that this instance uses.
public void Dispose()
Dispose
#For derived class implementers.
This method is called with argument true when class user calls Dispose(), while with argument false when the Garbage Collector invokes the finalizer, or Finalize() method.
You must reclaim all used unmanaged resources in both cases, and can use this chance to call Dispose on disposable fields if the argument is true.
Also, you must call the base virtual method within your overriding method.
protected virtual void Dispose()
disposing
true if the call comes from the Dispose() method; false if it comes from the Garbage Collector finalizer.
Create a duplicate of this matrix.
Returns: An exact duplicate of this matrix.
GetHashCode
#Gets the hash code for this matrix. The hash code will change when the matrix changes so you cannot change matrices while they are stored in hash tables.
Returns: Hash code.
Overrides: Object.GetHashCode
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
[ConstOperation]
public virtual void GetObjectData()
info,
The System.Runtime.Serialization.SerializationInfo to populate with data.
context
The destination (see System.Runtime.Serialization.StreamingContext) for this serialization.
Modifies this matrix to become its own inverse.
Matrix might be non-invertible (singular) and the return value will be false.
Returns: true if operation succeeded; otherwise false.
Row reduces a matrix as the first step in solving M*X=b where b is a column of values.
public int RowReduce()
zeroTolerance,
(>=0.0) zero tolerance for pivot test. If the absolute value of a pivot is <= zero_tolerance, then the pivot is assumed to be zero.
double[]
b,
an array of RowCount values that is row reduced with the matrix.
out double
pivot
the value of the smallest pivot is returned here.
Remarks: The matrix itself is row reduced so that the result is an upper triangular matrix with 1's on the diagonal.
Returns: Rank of the matrix.
Row reduces a matrix to calculate rank and determinant.
Remarks: The matrix itself is row reduced so that the result is an upper triangular matrix with 1's on the diagonal.
Returns: Rank of the matrix.
Row reduces a matrix as the first step in solving M*X=b where b is a column of 3d points.
public int RowReduce()
zeroTolerance,
(>=0.0) zero tolerance for pivot test. If the absolute value of a pivot is <= zero_tolerance, then the pivot is assumed to be zero.
Point3d[]
b,
An array of RowCount 3d points that is row reduced with the matrix.
out double
pivot
The value of the smallest pivot is returned here.
Remarks: The matrix itself is row reduced so that the result is an upper triangular matrix with 1's on the diagonal.
Returns: Rank of the matrix.
Modifies the current matrix by multiplying its values by a number.
Sets diagonal value and zeros off all non-diagonal values.
Exchanges two columns.
Returns: true if operation succeeded; otherwise false.
Exchanges two rows.
Returns: true if operation succeeded; otherwise false.
Modifies this matrix to be its transpose.
This is like swapping rows with columns.
Returns: true if operation succeeded; otherwise false.