DiagonalMatrix Class

Represents a diagonal matrix.

Definition

Namespace: Meta.Numerics.Matrices
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public class DiagonalMatrix : AnySquareMatrix
Inheritance
Object    AnyMatrixDouble    AnyRectangularMatrix    AnySquareMatrix    DiagonalMatrix

Remarks

A diagonal matrix has non-zero entries only on the diagonal.

Constructors

DiagonalMatrix(Double) Initializes a new diagonal matrix with the given diagonal entries.
DiagonalMatrix(Int32) Initializes a new, empty diagonal matrix.

Properties

ColumnCount Gets the number of matrix columns.
(Inherited from AnySquareMatrix)
Dimension Gets or sets the dimension of the square matrix.
(Overrides AnySquareMatrixDimension)
IsReadOnly Gets a flag indicating whether the matrix is read-only.
(Inherited from AnyMatrixT)
Item Gets or sets the value of a matrix entry.
(Overrides AnyMatrixTItemInt32, Int32)
RowCount Gets the number of matrix rows.
(Inherited from AnySquareMatrix)

Methods

Column Gets the specified column.
(Inherited from AnyRectangularMatrix)
Equals(AnyMatrixT) Determines whether the given matrix equals the current matrix.
(Inherited from AnyMatrixT)
Equals(Object) Determines whether the given object is an equal matrix.
(Inherited from AnyMatrixT)
Fill Sets all matrix entries according to a supplied fill function.
(Inherited from AnyMatrixT)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FrobeniusNorm Computes the Frobenius-norm of the matrix.
(Inherited from AnyRectangularMatrix)
GetHashCode Not a valid operation.
(Inherited from AnyMatrixT)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InfinityNorm Computes the ∞-norm of the matrix.
(Inherited from AnyRectangularMatrix)
MaxNorm Computes the max-norm of the matrix.
(Inherited from AnyRectangularMatrix)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
MultiplySelfByTranspose Computes the product of the matrix and its transpose.
(Inherited from AnyRectangularMatrix)
MultiplyTransposeBySelf Computes the product of the matrix's transpose and itself.
(Inherited from AnyRectangularMatrix)
OneNorm Computes the 1-norm of the matrix.
(Inherited from AnyRectangularMatrix)
Row Gets a copy of the specified row.
(Inherited from AnyRectangularMatrix)
ToArray Copies the matrix into an array.
(Inherited from AnyMatrixT)
ToStringReturns a string that represents the current object.
(Inherited from Object)
Trace Computes the trace of the square matrix.
(Inherited from AnySquareMatrix)

See Also