The DoubleMatrix type exposes the following members.

Constructors

  NameDescription
DoubleMatrixOverloaded.

Methods

  NameDescription
AddOverloaded.
ApplyOverloaded.
ApplyColumns
Returns a new vector containing an element for each column in this matrix. The elements are the results of applying a function that takes a vector and returns a single-precision number.
Clone
Creates a deep copy of this matrix.
Col
Returns a column of this matrix as a vector. The returned vector and the matrix share the data.
Decrement
Decrements each element of the given matrix.
DeepenThisCopy
Guarantees that there is only one reference to the underlying data and that this data is in contiguous storage.
DiagonalOverloaded.
DivideOverloaded.
Equals
Tests for equality of this matrix and another matrix. Two matrices are equal if they have the same dimensions and all values are equal.
(Overrides Object..::.Equals(Object).)
FrobeniusNorm
Computes the Frobenius norm for this matrix.
GetDoubleEnumerator
Creates an IDoubleEnumerator out of the data elements in this vector.
GetEnumerator
Creates an IEnumerator out of the data elements in this matrix.
GetHashCode
Returns an integer hash code for this matrix.
(Overrides Object..::.GetHashCode()()().)
GetSchema
The method is reserved and should not be used.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Identity
Returns an identity matrix of the specified size.
IncrementOverloaded.
InfinityNorm
Computes the infinity-norm of this matrix.
MultiplyOverloaded.
NaNEquals
Tests for equality of this matrix and another matrix. Two matrices are equal if they have the same dimensions and all values are equal.
Negate
Negation operator.
OneNorm
Computes the 1-norm of this matrix.
ParseOverloaded.
ReadXml
Generates a DoubleMatrix instance form its XML representation.

Examples

The matrix: | 1 2 3 | | 4 5 6 | | 7 8 9 | would be serialized as:
Resize
Changes the dimensions of this matrix to those specified, adding zeros or truncating as necessary.
ResizeAndClear
Changes the dimensions of this matrix to those specified. Matrix values are not preserved during this operation and are reset to zero.
Row
Returns a row of this matrix as a vector. The returned vector and the matrix share the data.
Scale
Scales each element in the matrix by the specified value.
SetOverloaded.
ShallowCopy
Creates a shallow copy of this matrix.
Slice
Returns a vector that views a slice of this matrix. The slice begins at element i,j and extends for n elements. The increment between successive elements in the vector is rowStride rows and colStride columns.
SubtractOverloaded.
ToArray
Copies data into an array and returns it.
ToCommaSeparatedOverloaded.
ToDataTableOverloaded.
ToStringOverloaded.
ToTabDelimitedOverloaded.
TransformOverloaded.
Transpose
Returns the transpose of this matrix.
WriteOverloaded.
WriteAsCSVOverloaded.
WriteXml
Converts an object into its XML representation.

Examples

The matrix: | 1 2 3 | | 4 5 6 | | 7 8 9 | would be serialized as:

Operators

  NameDescription
AdditionOverloaded.
Decrement
Decrements each element of the given matrix.
DivisionOverloaded.
Equality
Tests for equality of two matrices. Two matrices are equal if they have the same dimensions and all values are equal.
Implicit
Implicitly converts a FloatMatrix instance into a DoubleMatrix instance.
Increment
Increments each element of the given matrix.
Inequality
Tests for inequality of two matrices. Two matrices are not equal if they have different dimensions or their values are not all equal.
MultiplyOverloaded.
SubtractionOverloaded.
UnaryNegation
Negation operator.
UnaryPlus
Unary + operator. Just returns the input matrix.

Fields

  NameDescription
XmlColumnsAttribute
XML columns attribute name.
XmlDataElement
XML data element name.
XmlDatumElement
XML datum element name.
XmlRowsAttribute
XML rows attribute name.

Properties

  NameDescription
Cols
Gets number of columns in this matrix.
ColStride
Gets the increment between successive elements in a column.
DataBlock
Gets a reference to the underly data that this matrix is viewing.
IsCompactStride
Returns true if the matrix data is in column major contiguous storage.
ItemOverloaded.
Rows
Gets the number of rows in this matrix.
RowStride
Gets the increment between successive elements in a row.

See Also