Click or drag to resize

DoubleComplexMatrix Class

Class DoubleComplexMatrix represents a general mathematical matrix class of DoubleComplex numbers. Methods are provided for performing algebraic operations, data manipulation, and slicing.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreDoubleComplexMatrix

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class DoubleComplexMatrix : IEnumerable<DoubleComplex>, 
	IEnumerable, ICloneable, IXmlSerializable

The DoubleComplexMatrix type exposes the following members.

Constructors
 NameDescription
Public methodDoubleComplexMatrix An undefined matrix. Must be resized before using.
Public methodDoubleComplexMatrix(DoubleComplex) Constructs a DoubleComplexMatrix instance initialized with data in a given two-dimensional array.
Public methodDoubleComplexMatrix(DoubleComplexMatrix) Constructs a deep copy of a DoubleComplexMatrix.
Public methodDoubleComplexMatrix(DoubleComplexVector) Constructs a n x 1 DoubleComplexMatrix instance from a given vector.
Public methodCode exampleDoubleComplexMatrix(String) Constructs a DoubleComplexMatrix instance from a formatted string.
Public methodCode exampleDoubleComplexMatrix(TextReader) Constructs a DoubleComplexMatrix instance from the given text reader.
Public methodDoubleComplexMatrix(DataRow, DataRow) Constructs a DoubleComplexMatrix instance from two data row arrays. The real parts are specified with the first data row array and the imaginary parts by the second data row array.
Public methodDoubleComplexMatrix(DataRowCollection, DataRowCollection) Constructs a DoubleComplexMatrix instance from two data row collections. The real parts are specified with the first data row collection, and the imaginary parts by the second data row collection.
Public methodDoubleComplexMatrix(DataTable, DataTable) Constructs a DoubleComplexMatrix instance from the data tables. The real parts are specified with the first data table, and the imaginary parts by the second data table.
Public methodDoubleComplexMatrix(DataView, DataView) Constructs a DoubleComplexMatrix instance from the data views. The real parts are specified with the first data view, and the imaginary parts by the second data view.
Public methodDoubleComplexMatrix(DoubleMatrix, DoubleMatrix) Constructs a DoubleComplexMatrix instance from a matrix of real parts and a matrix of imaginary parts.
Public methodDoubleComplexMatrix(Int32, Int32) Constructs a DoubleComplexMatrix instance with the specifed number of rows and columns.
Public methodCode exampleDoubleComplexMatrix(String, NumberStyles) Constructs a DoubleComplexMatrix instance from a formatted string and a NumberStyles object.
Public methodCode exampleDoubleComplexMatrix(TextReader, NumberStyles) Returns a new DoubleComplexMatrix instance from the given text reader.
Public methodDoubleComplexMatrix(Int32, Int32, DoubleComplex) Constructs a DoubleComplexMatrix instance of the specifed dimensions and initializes all matrix element values to the given value.
Public methodCode exampleDoubleComplexMatrix(Int32, Int32, DoubleComplexDataBlock) Constructs a DoubleComplexMatrix instance from a data block.
Public methodDoubleComplexMatrix(Int32, Int32, RandomNumberGenerator) Constructs a DoubleComplexMatrix instance from a random number generator.
Public methodDoubleComplexMatrix(Int32, Int32, DoubleComplex, DoubleComplex) Constructs a DoubleComplexMatrix instance of the specifed dimensions. Values are initialized starting with a given initial value, incremented by the specified amount for each element in the matrix.
Public methodDoubleComplexMatrix(Int32, Int32, DoubleComplex, StorageType) Constructs a DoubleComplexMatrix instance of the specified dimensions, initialized with the values in a given array.
Public methodDoubleComplexMatrix(Int32, Int32, DoubleComplexDataBlock, Int32, Int32) Constructs a DoubleComplexMatrix instance from a data block with the given row and column strides.
Top
Properties
 NameDescription
Public propertyCols Gets number of columns in this matrix.
Public propertyCode exampleColStride Gets the increment between successive elements in a column.
Public propertyDataBlock Gets a reference to the underly data that this matrix is viewing.
Public propertyIsCompactStride Returns true if the matrix data is in column major contiguous storage.
Public propertyItemInt32, Slice Creates a vector view of the specifed slice of the specified row of this matrix.
Public propertyItemInt32, Int32 Indexer for returning the element at a specified row and column position.
Public propertyItemSlice, Slice Returns the submatrix determined by the specified slices.
Public propertyItemSlice, Int32 Creates a vector view of the specifed slice of the specified column of this matrix.
Public propertyRows Gets the number of rows in this matrix.
Public propertyCode exampleRowStride Gets the increment between successive elements in a row.
Top
Methods
 NameDescription
Public methodStatic memberAdd(DoubleComplex, DoubleComplexMatrix) Adds a scalar and a matrix.
Public methodStatic memberAdd(DoubleComplexMatrix, DoubleComplex) Adds a matrix and a scalar.
Public methodStatic memberAdd(DoubleComplexMatrix, DoubleComplexMatrix) Adds two matrices.
Public methodStatic memberAdd(DoubleComplex, DoubleComplexMatrix, DoubleComplexMatrix) Adds a scalar and a matrix.
Public methodStatic memberAdd(DoubleComplexMatrix, DoubleComplex, DoubleComplexMatrix) Adds a scalar to a matrix
Public methodStatic memberAdd(DoubleComplexMatrix, DoubleComplexMatrix, DoubleComplexMatrix) Adds two matrices.
Public methodApply(FuncDoubleComplex, DoubleComplex) Returns a new matrix with the same size as this matrix, whose values are the result of applying the given unary function to each element of this matrix.
Public methodApply(FuncDoubleComplex, Double) Returns a new matrix with the same size as this matrix, whose values are the result of applying the given unary function to each element of this matrix.
Public methodApply(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplex) Returns a new matrix with the same size as this matrix, whose values are the result of applying the given binary function to each element of this matrix. The first parameter to the binary function is the matrix element; the second parameter is the passed DoubleComplex value.
Public methodApply(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplexMatrix) Returns a new matrix with the same size as this matrix, whose values are the result of applying the given binary function to each element of this matrix. The first parameter to the binary function is the matrix element; the second parameter is the corresponding element of the passed matrix.
Public methodApply(FuncDoubleComplex, Int32, DoubleComplex, Int32) Returns a new matrix with the same size as this matrix, whose values are the result of applying the given binary function to each element of this matrix. The first parameter to the binary function is the matrix element; the second parameter is the passed integer value.
Public methodApplyColumns 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.
Public methodClear Sets the data elements of this vector to zero.
Public methodClear(Int32, Slice) Sets the values of the submatrix determined by the specified slices to zero.
Public methodClear(Slice, Slice) Sets the values of the submatrix determined by the specified slices to zero.
Public methodClear(Slice, Int32) Sets the values of the submatrix determined by the specified slices to zero.
Public methodClone Creates a deep copy of this matrix.
Public methodCol Returns a column of this matrix as a vector. The returned vector and the matrix share the data.
Public methodConjTranspose Returns the conjugate transpose of this matrix.
Public methodDeepenThisCopy Guarantees that there is only one reference to the underlying data and that this data is in contiguous storage.
Public methodDiagonal Returns a vector view of the main diagonal of this matrix.
Public methodDiagonal(Int32) Returns a vector view of a diagonal of this matrix.
Public methodStatic memberDivide(DoubleComplex, DoubleComplexMatrix) Divide a scalar by a matrix.
Public methodStatic memberDivide(DoubleComplexMatrix, DoubleComplex) Divide a matrix by a scalar.
Public methodStatic memberDivide(DoubleComplexMatrix, DoubleComplexMatrix) Divide a matrix by another.
Public methodStatic memberDivide(DoubleComplex, DoubleComplexMatrix, DoubleComplexMatrix) Divide a scalar by a matrix.
Public methodStatic memberDivide(DoubleComplexMatrix, DoubleComplex, DoubleComplexMatrix) Divide a matrix by a scalar.
Public methodStatic memberDivide(DoubleComplexMatrix, DoubleComplexMatrix, DoubleComplexMatrix) Divide a matrix by another.
Public methodEquals 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 ObjectEquals(Object))
Public methodFrobeniusNorm Computes the Frobenius norm for this matrix.
Public methodGetDoubleComplexEnumerator Creates an IDoubleComplexEnumerator out of the data elements in this vector.
Public methodGetEnumerator Creates an IEnumerator{DoubleComplex} out of the data elements in this matrix.
Public methodGetHashCode Returns an integer hash code for this matrix.
(Overrides ObjectGetHashCode)
Public methodGetSchema The method is reserved and should not be used.
Public methodStatic memberIdentity Returns an identity matrix of the specified size.
Public methodIncrement Adds the specified value to each element in the matrix.
Public methodInfinityNorm Computes the infinity-norm of this matrix.
Public methodStatic memberMultiply(DoubleComplex, DoubleComplexMatrix) Multiple a scalar and a matrix.
Public methodStatic memberMultiply(DoubleComplexMatrix, DoubleComplex) Multiply a matrix and a scalar.
Public methodStatic memberMultiply(DoubleComplexMatrix, DoubleComplexMatrix) Multiply two matrices.
Public methodStatic memberMultiply(DoubleComplex, DoubleComplexMatrix, DoubleComplexMatrix) Multiply a scalar and a matrix.
Public methodStatic memberMultiply(DoubleComplexMatrix, DoubleComplex, DoubleComplexMatrix) Multiply a matrix and a scalar.
Public methodStatic memberMultiply(DoubleComplexMatrix, DoubleComplexMatrix, DoubleComplexMatrix) Multiply two matrices.
Public methodNaNEquals Tests for equality of this matrix and another matrix. Two matrices are equal if they have the same dimensions and all values are equal.
Public methodStatic memberNegate Negation operator.
Public methodOneNorm Computes the 1-norm of this matrix.
Public methodStatic memberCode exampleParse(String) Constructs a DoubleComplexMatrix instance from a formatted string.
Public methodStatic memberCode exampleParse(TextReader) Constructs a DoubleComplexMatrix instance from the given text reader.
Public methodStatic memberCode exampleParse(String, NumberStyles) Constructs a DoubleComplexMatrix instance from a formatted string and a NumberStyles object.
Public methodStatic memberCode exampleParse(TextReader, NumberStyles) Returns a new DoubleMatrix instance from the given text reader.
Public methodCode exampleReadXml Generates a DoubleComplexMatrix instance form its XML representation.
Example
The matrix: | (1,0) (2,0) (3,0) | | (4,0) (5,0) (6,0) | | (7,0) (8,0) (9,0) | would be serialized as:
Public methodResize Changes the dimensions of this matrix to those specified, adding zeros or truncating as necessary.
Public methodResizeAndClear Changes the dimensions of this matrix to those specified. Matrix values are not preserved during this operation and are reset to zero.
Public methodRow Returns a row of this matrix as a vector. The returned vector and the matrix share the data.
Public methodScale Scales each element in the matrix by the specified value.
Public methodSet(DoubleComplex) Sets the data elements of this vector to the specified value.
Public methodSet(Int32, Slice, DoubleComplex) Sets the values in the specified row and columns to the given value.
Public methodSet(Slice, Slice, DoubleComplex) Sets the values of the submatrix determined by the specified slices to a given value.
Public methodSet(Slice, Int32, DoubleComplex) Sets the values in the specified rows and column to a given value.
Public methodShallowCopy Creates a shallow copy of this matrix.
Public methodSlice 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.
Public methodStatic memberSubtract(DoubleComplex, DoubleComplexMatrix) Subtracts a matrix from a scalar.
Public methodStatic memberSubtract(DoubleComplexMatrix, DoubleComplex) Subtracts a scalar from a matrix.
Public methodStatic memberSubtract(DoubleComplexMatrix, DoubleComplexMatrix) Subtracts one matrix from another.
Public methodStatic memberSubtract(DoubleComplex, DoubleComplexMatrix, DoubleComplexMatrix) Subtracts a matrix from a scalar.
Public methodStatic memberSubtract(DoubleComplexMatrix, DoubleComplex, DoubleComplexMatrix) Subtracts a scalar from a matrix.
Public methodStatic memberSubtract(DoubleComplexMatrix, DoubleComplexMatrix, DoubleComplexMatrix) Subtracts one matrix from another.
Public methodToArray Copies data into an array and returns it.
Public methodToImagDataTable Creates a data table containing the imaginary parts in this matrix.
Public methodToImagDataTable(String) Creates a data table with the specified name containing the imaginary parts in this matrix.
Public methodToRealDataTable Creates a data table containing the real parts in this matrix.
Public methodToRealDataTable(String) Creates a data table with the specified name containing the real parts in this matrix.
Public methodCode exampleToString Returns a formatted string representation of this matrix.
(Overrides ObjectToString)
Public methodCode exampleToString(String) Returns a formatted string representation of this matrix. Numbers are displayed using the specified format.
Public methodCode exampleToTabDelimited Returns a formatted string representation of this matrix using tabs and newlines.
Public methodCode exampleToTabDelimited(String) Returns a formatted string representation of this matrix using tabs and newlines. Numbers are formatted using the specified format string.
Public methodTransform(FuncDoubleComplex) Modifies the elements of this matrix by applying the given no-argument function to each element.
Public methodTransform(FuncDoubleComplex, DoubleComplex) Modifies the elements of this matrix by applying the given unary function to each element.
Public methodTransform(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplex) Modifies the contents of this matrix by applying the given binary function to each element. The first parameter to the binary function is the matrix element; the second parameter is the passed DoubleComplex value.
Public methodTransform(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplexMatrix) Modifies the contents of this matrix by applying the given binary function to each element. The first parameter to the binary function is the matrix element; the second parameter is the corresponding element of the passed matrix.
Public methodTransform(FuncDoubleComplex, Int32, DoubleComplex, Int32) Modifies the contents of this matrix by applying the given binary function to each element. The first parameter to the binary function is the matrix element; the second parameter is the passed integer value.
Public methodTranspose Returns the transpose of this matrix.
Public methodWrite(TextWriter) Writes a text representation of this matrix to the writer.
Public methodWrite(TextWriter, String) Writes a formatted text representation of this matrix to the writer using the specified format.
Public methodCode exampleWriteXml Converts an object into its XML representation.
Example
The matrix: | (1,0) (2,0) (3,0) | | (4,0) (5,0) (6,0) | | (7,0) (8,0) (9,0) | would be serialized as:
Top
Operators
 NameDescription
Public operatorStatic memberAddition(DoubleComplex, DoubleComplexMatrix) Adds a scalar and a matrix.
Public operatorStatic memberAddition(DoubleComplexMatrix, DoubleComplex) Adds a matrix and a scalar.
Public operatorStatic memberAddition(DoubleComplexMatrix, DoubleComplexMatrix) Adds two matrices.
Public operatorStatic memberDivision(DoubleComplex, DoubleComplexMatrix) Divide a scalar by a matrix.
Public operatorStatic memberDivision(DoubleComplexMatrix, DoubleComplex) Divide a matrix by a scalar.
Public operatorStatic memberDivision(DoubleComplexMatrix, DoubleComplexMatrix) Divide a matrix by another.
Public operatorStatic memberEquality(DoubleComplexMatrix, DoubleComplexMatrix) Tests for equality of two matrices. Two matrices are equal if they have the same dimensions and all values are equal.
Public operatorStatic member(DoubleMatrix to DoubleComplexMatrix) Implicitly converts a DoubleMatrix instance into a DoubleComplexMatrix instance.
Public operatorStatic member(FloatComplexMatrix to DoubleComplexMatrix) Implicitly converts a FloatComplexMatrix instance into a DoubleComplexMatrix instance.
Public operatorStatic memberInequality(DoubleComplexMatrix, DoubleComplexMatrix) Tests for inequality of two matrices. Two matrices are not equal if they have different dimensions or their values are not all equal.
Public operatorStatic memberMultiply(DoubleComplex, DoubleComplexMatrix) Multiply a scalar and a matrix.
Public operatorStatic memberMultiply(DoubleComplexMatrix, DoubleComplex) Multiply a matrix and a scalar.
Public operatorStatic memberMultiply(DoubleComplexMatrix, DoubleComplexMatrix) Multiplies two matrices.
Public operatorStatic memberSubtraction(DoubleComplex, DoubleComplexMatrix) Subtracts a matrix from a scalar.
Public operatorStatic memberSubtraction(DoubleComplexMatrix, DoubleComplex) Subtracts a scalar from a matrix.
Public operatorStatic memberSubtraction(DoubleComplexMatrix, DoubleComplexMatrix) Subtracts one matrix from another.
Public operatorStatic memberUnaryNegation(DoubleComplexMatrix) Negation operator.
Public operatorStatic memberUnaryPlus(DoubleComplexMatrix) Unary + operator. Just returns the input matrix.
Top
Fields
 NameDescription
Public fieldStatic memberXmlColumnsAttribute XML columns attribute name.
Public fieldStatic memberXmlDataElement XML data element name.
Public fieldStatic memberXmlDatumElement XML datum element name.
Public fieldStatic memberXmlRowsAttribute XML rows attribute name.
Top
See Also