Click or drag to resize
DigitalRuneMatrixD Class
Defines an m x n matrix (double-precision).
Inheritance Hierarchy
SystemObject
  DigitalRune.Mathematics.AlgebraMatrixD

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class MatrixD : IEquatable<MatrixD>, 
	ISerializable, IXmlSerializable

The MatrixD type exposes the following members.

Constructors
  NameDescription
Public methodMatrixD
Initializes a new instance of the MatrixD class with 4 x 4 matrix elements.
Public methodMatrixD(Double)
Initializes a new instance of the MatrixD class.
Public methodMatrixD(Double)
Initializes a new instance of the MatrixD class.
Public methodMatrixD(Int32, Int32)
Initializes a new instance of the MatrixD class.
Protected methodMatrixD(SerializationInfo, StreamingContext)
Initializes a new instance of the MatrixD class with serialized data.
Public methodMatrixD(Int32, Int32, Double)
Initializes a new instance of the MatrixD class. Each element is set to value.
Public methodMatrixD(Int32, Int32, IListDouble, MatrixOrder)
Initializes a new instance of the MatrixD class.
Public methodMatrixD(Int32, Int32, Double, MatrixOrder)
Initializes a new instance of the MatrixD class.
Top
Methods
  NameDescription
Public methodAbsolute
Sets each matrix element to its absolute value.
Public methodStatic memberAbsolute(MatrixD)
Returns a matrix with the absolute values of the elements of the given matrix.
Public methodStatic memberAdd
Adds two matrices.
Public methodStatic memberAreNumericallyEqual(MatrixD, MatrixD)
Determines whether two matrices are equal (regarding the tolerance EpsilonD).
Public methodStatic memberAreNumericallyEqual(MatrixD, MatrixD, Double)
Determines whether two matrices are equal (regarding a specific tolerance).
Public methodClampToZero
Clamps near-zero matrix elements to zero.
Public methodClampToZero(Double)
Clamps near-zero matrix elements to zero.
Public methodStatic memberClampToZero(MatrixD)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodStatic memberClampToZero(MatrixD, Double)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodClone
Clones this instance.
Public methodStatic memberCreateIdentity
Creates an identity matrix.
Public methodStatic memberDivide
Divides a matrix by a scalar.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ObjectEquals(Object).)
Public methodEquals(MatrixD)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetColumn
Gets the column with the given index.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodGetMinor
Gets the minor matrix.
Protected methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetRow
Gets the row with the given index.
Public methodGetSchema
This property is reserved, apply the XmlSchemaProviderAttribute to the class instead.
Public methodGetSubmatrix(Int32, Int32)
Gets a submatrix of this matrix.
Public methodGetSubmatrix(Int32, Int32, Int32)
Gets a submatrix of this matrix.
Public methodGetSubmatrix(Int32, Int32, Int32)
Gets a submatrix of this matrix.
Public methodGetSubmatrix(Int32, Int32, Int32, Int32)
Gets a submatrix of this matrix.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Inverts the matrix.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMultiply(Double, MatrixD)
Multiplies a matrix by a scalar.
Public methodStatic memberMultiply(MatrixD, MatrixD)
Multiplies two matrices.
Public methodStatic memberMultiply(MatrixD, VectorD)
Multiplies a matrix with a column vector.
Public methodStatic memberNegate
Negates a matrix.
Public methodReadXml
Generates an object from its XML representation.
Public methodSet(Double)
Sets the matrix elements to the specified value.
Public methodSet(Double)
Sets the matrix elements to the values of the array.
Public methodSet(Double)
Sets the matrix elements to the values of the array.
Public methodSet(MatrixD)
Sets the elements of this matrix.
Public methodSet(IListDouble, MatrixOrder)
Sets the matrix elements to the values of the list.
Public methodSet(Double, MatrixOrder)
Sets the matrix elements to the values of the array.
Public methodSetColumn
Sets a column.
Public methodSetIdentity
Sets this matrix to an identity matrix.
Public methodSetRow
Sets a row.
Public methodSetSubmatrix
Sets a submatrix of this matrix.
Public methodStatic memberSolveLinearEquations(MatrixD, MatrixD)
Solves the linear set of equations A * X = B.
Public methodStatic memberSolveLinearEquations(MatrixD, VectorD)
Solves the linear set of equations A * x = b.
Public methodStatic memberSubtract
Subtracts two matrices.
Public methodToArray1D
Converts this matrix to an array of double values.
Public methodToArray2D
Converts this MatrixD to a 2-dimensional double array.
Public methodToArrayJagged
Converts this MatrixD to a jagged double array.
Public methodToList
Converts this matrix to a list of double values.
Public methodToMatrix22D
Converts this MatrixD to Matrix22D.
Public methodToMatrix33D
Converts this MatrixD to Matrix33D.
Public methodToMatrix44D
Converts this MatrixD to Matrix44D.
Public methodToMatrixF
Converts this MatrixD to MatrixF.
Public methodToString
Returns the string representation of this matrix.
(Overrides ObjectToString.)
Public methodToString(IFormatProvider)
Returns the string representation of this matrix using the specified culture-specific format information.
Public methodTranspose
Transposes this matrix.
Public methodTryInvert
Inverts the matrix if it is invertible.
Public methodWriteXml
Converts an object into its XML representation.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two matrices.
Public operatorStatic memberDivision
Divides a matrix by a scalar.
Public operatorStatic memberEquality
Tests if two matrices are equal.
Public operatorStatic member(MatrixD to Double)
Performs an explicit conversion from MatrixD to a 2-dimensional double array.
Public operatorStatic member(MatrixD to Double)
Performs an explicit conversion from MatrixD to jagged double array.
Public operatorStatic member(MatrixD to Matrix22D)
Performs an explicit conversion from MatrixD to Matrix22D.
Public operatorStatic member(MatrixD to Matrix33D)
Performs an explicit conversion from MatrixD to Matrix33D.
Public operatorStatic member(MatrixD to Matrix44D)
Performs an explicit conversion from MatrixD to Matrix44D.
Public operatorStatic member(MatrixD to MatrixF)
Performs an explicit conversion from MatrixD to MatrixF.
Public operatorStatic memberInequality
Tests if two matrices are not equal.
Public operatorStatic memberMultiply(Double, MatrixD)
Multiplies a matrix by a scalar.
Public operatorStatic memberMultiply(MatrixD, MatrixD)
Multiplies two matrices.
Public operatorStatic memberMultiply(MatrixD, VectorD)
Multiplies a matrix with a column vector.
Public operatorStatic memberMultiply(MatrixD, Double)
Multiplies a matrix and a scalar.
Public operatorStatic memberSubtraction
Subtracts two matrices.
Public operatorStatic memberUnaryNegation
Negates a matrix.
Top
Properties
  NameDescription
Public propertyDeterminant
Returns the determinant of this matrix.
Public propertyInverse
Returns the inverse or pseudo-inverse of this matrix.
Public propertyIsNaN
Gets a value indicating whether a component of the vector is NaN.
Public propertyIsSquare
Gets a value indicating whether this matrix is a square matrix (number of rows is equal to number of columns).
Public propertyIsSymmetric
Gets a value indicating whether this matrix is symmetric.
Public propertyItemInt32
Gets or sets the element at the specified index.
Public propertyItemInt32, Int32
Gets or sets the element at the specified index.
Public propertyNorm1
Gets the one norm of this matrix.
Public propertyNormFrobenius
Gets the Frobenius norm of this matrix.
Public propertyNormInfinity
Gets the infinity norm of this matrix.
Public propertyNumberOfColumns
Gets the number of columns n.
Public propertyNumberOfRows
Gets the number of rows m.
Public propertyTrace
Gets the matrix trace (the sum of the diagonal elements).
Public propertyTransposed
Returns the transposed of this matrix.
Top
Remarks

All indices are zero-based. The first index is the row, the second is the column:

[0,0] [0,1] [0,2] ...
[1,0] [1,1] [1,2] ...
[2,0] [2,1] [2,2] ...
...   ...   ...   ...

See Also