Click or drag to resize

DoubleComplexVector Class

Class DoubleComplexVector represents a mathematical vector of DoubleComplex numbers.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreDoubleComplexVector

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

The DoubleComplexVector type exposes the following members.

Constructors
 NameDescription
Public methodDoubleComplexVector Undefined vector. Must be resized before using.
Public methodDoubleComplexVector(DoubleComplex) Constructs a DoubleComplexVector instance from the contents of the given array.
Public methodDoubleComplexVector(DoubleComplexVector) Constructs a deep copy of a DoubleComplexVector.
Public methodDoubleComplexVector(Int32) Constructs a DoubleComplexVector instance with the given length.
Public methodDoubleComplexVector(String) Constructs a DoubleComplexVector instance from a given string representation.
Public methodDoubleComplexVector(TextReader) Constructs a DoubleComplexVector instance from the given text reader.
Public methodDoubleComplexVector(DataRow, DataRow) Constructs a DoubleComplexVector instance from two data row arrays. The real parts are specified with the first column of the first data row array, and the imaginary parts by the first column of the second data row array.
Public methodDoubleComplexVector(DataRowCollection, DataRowCollection) Constructs a DoubleComplexVector instance from two data row collections. The real parts are specified with the first column of the first data row collection, and the imaginary parts by the first column of the second data row collection.
Public methodDoubleComplexVector(DataTable, DataTable) Constructs a DoubleComplexVector instance from the data tables. The real parts are specified with the first column of the first data table, and the imaginary parts by the first column in the second data table.
Public methodDoubleComplexVector(DataView, DataView) Constructs a DoubleComplexVector instance from the data views. The real parts are specified with the first column of the first data view, and the imaginary parts by the first column in the second data view.
Public methodDoubleComplexVector(DoubleVector, DoubleVector) Constructs a DoubleComplexVector instance from a vector of real parts and a vector of imaginary parts.
Public methodDoubleComplexVector(Int32, DoubleComplex) Constructs a DoubleComplexVector instance with the given length, and all values initialized to the given value.
Public methodDoubleComplexVector(Int32, FloatComplex) Constructs a DoubleComplexVector instance with the given length, and all values initialized to the given value.
Public methodDoubleComplexVector(Int32, RandomNumberGenerator) Constructs a DoubleComplexVector instance from a random number generator.
Public methodDoubleComplexVector(String, NumberStyles) Returns a new DoubleComplexVector instance from a given string representation using the specified style.
Public methodDoubleComplexVector(TextReader, NumberStyles) Constructs a DoubleComplexVector instance from the given text reader using the specified style.
Public methodDoubleComplexVector(DoubleComplexDataBlock, Int32, Int32) Constructs a DoubleComplexVector instance with the specifed length, stride and referenced data.
Public methodDoubleComplexVector(Int32, DoubleComplex, DoubleComplex) Constructs a DoubleComplexVector instance with the given length. Values are initialized starting with the given initial value, incremented by the specified amount for each element in the vector.
Public methodDoubleComplexVector(Int32, RandomNumberStream, IRandomNumberDistributionDouble) Constructs a DoubleComplexVector instance from a random number generator.
Top
Properties
 NameDescription
Public propertyDataBlock Gets a reference to the underlying data that this vector is viewing.
Public propertyItemInt32 Gets and sets the data element at the given position.
Public propertyCode exampleItemSlice Returns a new DoubleComplexVector instance pointing to the subset of this vector's data indicated by the given Slice.
Public propertyLength Gets the number of data elements in this vector.
Public propertyStride Gets the step between successive elements in the data that this vector is viewing.
Top
Methods
 NameDescription
Public methodStatic memberAdd(DoubleComplex, DoubleComplexVector) Adds a scalar and a vector.
Public methodStatic memberAdd(DoubleComplexVector, DoubleComplex) Adds a vector and a scalar.
Public methodStatic memberAdd(DoubleComplexVector, DoubleComplexVector) Adds two vectors.
Public methodStatic memberAdd(DoubleComplex, DoubleComplexVector, DoubleComplexVector) Adds a vector and a complex number and puts the result into another vector.
Public methodStatic memberAdd(DoubleComplexVector, DoubleComplex, DoubleComplexVector) Adds a vector and a complex number and puts the result into another vector.
Public methodStatic memberAdd(DoubleComplexVector, DoubleComplexVector, DoubleComplexVector) Adds two vectors and puts the result into a third vector.
Public methodAppend(DoubleComplex) Appends the given element to this vector.
Public methodAppend(DoubleComplexVector) Appends the given vector to this vector.
Public methodApply(FuncDoubleComplex, DoubleComplex) Returns a new vector with the same size as this vector, whose values are the result of applying the given unary function to each element of this vector.
Public methodApply(FuncDoubleComplex, Double) Returns a new vector with the same size as this vector, whose values are the result of applying the given unary function to each element of this vector.
Public methodApply(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplex) Returns a new vector with the same size as this vector, whose values are the result of applying the given binary function to each element of this vector. The first parameter to the binary function is the vector element; the second parameter is the passed DoubleComplex value.
Public methodApply(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplexVector) Returns a new vector with the same size as this vector, whose values are the result of applying the given binary function to each element of this vector. The first parameter to the binary function is an element of self; the second parameter is the corresponding element of the passed vector.
Public methodApply(FuncDoubleComplex, Int32, DoubleComplex, Int32) Returns a new vector with the same size as this vector, whose values are the result of applying the given binary function to each element of this vector. The first parameter to the binary function is the vector element; the second parameter is the passed integer value.
Public methodClear Sets the data elements of this vector to zero.
Public methodClear(Slice) Sets the data elements of this vector indicated by the given Slice to zero.
Public methodClone Creates a deep copy of this vector.
Public methodDeepenThisCopy Guarantees that there is only one reference to the underlying data and that this data is in contiguous storage.
Public methodStatic memberDivide(DoubleComplex, DoubleComplexVector) Divides a scalar by a vector.
Public methodStatic memberDivide(DoubleComplexVector, DoubleComplex) Divides a vector by a scalar.
Public methodStatic memberDivide(DoubleComplexVector, DoubleComplexVector) Divides a vector by another vector.
Public methodStatic memberDivide(DoubleComplex, DoubleComplexVector, DoubleComplexVector) Divides a complex number by a vector and puts the result into another vector.
Public methodStatic memberDivide(DoubleComplexVector, DoubleComplex, DoubleComplexVector) Divides a vector by a complex number and puts the result into another vector.
Public methodStatic memberDivide(DoubleComplexVector, DoubleComplexVector, DoubleComplexVector) Divides one vector by another vector and puts the result into a third vector.
Public methodEquals Tests for equality of this vector and another vector. Two vectors are equal if they have the same dimensions and all values are equal.
(Overrides ObjectEquals(Object))
Public methodStatic memberFromPolar Returns a complex vector in Cartesian form from the supplied polar coordinates.
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 vector.
Public methodGetHashCode Returns an integer hash code for this vector.
(Overrides ObjectGetHashCode)
Public methodGetSchema The method is reserved and should not be used.
Public methodIncrement Adds the specified value to each element in the vector.
Public methodInfinityNorm Computes the infinity-norm of this vector.
Public methodStatic memberMultiply(DoubleComplex, DoubleComplexVector) Multiplies a scalar with a vector.
Public methodStatic memberMultiply(DoubleComplexVector, DoubleComplex) Multiplies a vector with a scalar.
Public methodStatic memberMultiply(DoubleComplexVector, DoubleComplexVector) Multiplies two vectors.
Public methodStatic memberMultiply(DoubleComplex, DoubleComplexVector, DoubleComplexVector) Multiplies a complex number and a vector and puts the result into another vector.
Public methodStatic memberMultiply(DoubleComplexVector, DoubleComplex, DoubleComplexVector) Multiplies a vector and a complex number and puts the result into another vector.
Public methodStatic memberMultiply(DoubleComplexVector, DoubleComplexVector, DoubleComplexVector) Multiplies two vectors and puts the result into a third vector.
Public methodNaNEquals Tests for equality of this vector and another vector. Two vectors are equal if they have the same dimensions and all values are equal.
Public methodStatic memberNegate Negates a vector.
Public methodOneNorm Computes the 1-norm of this vector.
Public methodStatic memberParse(String) Returns a new DoubleComplexVector instance from a given string representation.
Public methodStatic memberParse(TextReader) Constructs a DoubleComplexVector instance from the given text reader.
Public methodStatic memberParse(String, NumberStyles) Returns a new DoubleComplexVector instance from a given string representation using the specified style.
Public methodStatic memberParse(TextReader, NumberStyles) Constructs a DoubleComplexVector instance from the given text reader using the specified style.
Public methodCode exampleReadXml Generates a DoubleComplexVector instance form its XML representation.
Example
The vector: [ (1,0) (2,0) (3,0) ] would be serialized as:
Public methodResize Changes the size of this vector to the specified length, adding zeros or truncating as necessary.
Public methodResizeAndClear Changes the size of this vector to the specified length, and resets the value of all data elements to zero.
Public methodReverse Returns a new vector view of the data in reverse order.
Public methodScale Scales each element in the vector by the specified value.
Public methodSet(DoubleComplex) Sets the data elements of this vector to the specified value.
Public methodSet(Slice, DoubleComplex) Sets the data elements of this vector indicated by the given Slice to the specified value.
Public methodShallowCopy Creates a shallow copy of this vector.
Public methodStatic memberSubtract(DoubleComplex, DoubleComplexVector) Subtracts a vector from a scalar.
Public methodStatic memberSubtract(DoubleComplexVector, DoubleComplex) Subtracts a scalar from a vector.
Public methodStatic memberSubtract(DoubleComplexVector, DoubleComplexVector) Subtracts a vector from a vector.
Public methodStatic memberSubtract(DoubleComplex, DoubleComplexVector, DoubleComplexVector) Subtracts a vector from a complex number and puts the result into another vector.
Public methodStatic memberSubtract(DoubleComplexVector, DoubleComplex, DoubleComplexVector) Subtracts a complex number from a vector and puts the result into another vector.
Public methodStatic memberSubtract(DoubleComplexVector, DoubleComplexVector, DoubleComplexVector) Subtracts a vector from a second vector and puts the result into a third vector.
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 methodToString Returns a formatted string representation of this vector.
(Overrides ObjectToString)
Public methodToString(String) Returns a formatted string representation of this vector.
Public methodTransform(FuncDoubleComplex) Modifies the elements of this vector by applying the given no-argument function to each element.
Public methodTransform(FuncDoubleComplex, DoubleComplex) Modifies the elements of this vector by applying the given unary function to each element.
Public methodTransform(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplex) Modifies the contents of this vector by applying the given binary function to each element. The first parameter to the binary function is the vector element; the second parameter is the passed DoubleComplex value.
Public methodTransform(FuncDoubleComplex, DoubleComplex, DoubleComplex, DoubleComplexVector) Modifies the contents of this vector by applying the given binary function to each element. The first parameter to the binary function is an element of self; the second parameter is the corresponding element of the passed vector.
Public methodTransform(FuncDoubleComplex, Int32, DoubleComplex, Int32) Modifies the contents of this vector by applying the given binary function to each element. The first parameter to the binary function is the vector element; the second parameter is the passed integer value.
Public methodTwoNorm Computes the 2-norm of this vector.
Public methodWrite(TextWriter) Writes a text representation of this vector to the given writer.
Public methodWrite(TextWriter, String) Writes a formatted text representation of this vector.
Public methodCode exampleWriteXml Converts an object into its XML representation.
Example
The vector: [ (1,0) (2,0) (3,0) ] would be serialized as:
Top
Operators
 NameDescription
Public operatorStatic memberAddition(DoubleComplex, DoubleComplexVector) Adds a scalar and a vector.
Public operatorStatic memberAddition(DoubleComplexVector, DoubleComplex) Adds a vector and a scalar.
Public operatorStatic memberAddition(DoubleComplexVector, DoubleComplexVector) Adds two vectors.
Public operatorStatic memberDivision(DoubleComplex, DoubleComplexVector) Divides a scalar by a vector.
Public operatorStatic memberDivision(DoubleComplexVector, DoubleComplex) Divides a vector by a scalar.
Public operatorStatic memberDivision(DoubleComplexVector, DoubleComplexVector) Divides a vector by another vector.
Public operatorStatic memberEquality(DoubleComplexVector, DoubleComplexVector) Tests for equality of two vectors. Two vectors are equal if they have the same dimensions and all values are equal.
Public operatorStatic member(DoubleVector to DoubleComplexVector) Implicitly converts a DoubleVector instance into a DoubleComplexVector instance.
Public operatorStatic member(FloatComplexVector to DoubleComplexVector) Implicitly converts a FloatComplexVector instance into a DoubleComplexVector instance.
Public operatorStatic memberInequality(DoubleComplexVector, DoubleComplexVector) Tests for inequality of two vectors. Two vectors are unequal if they have different dimensions or their values are not all equal.
Public operatorStatic memberMultiply(DoubleComplex, DoubleComplexVector) Multiplies a scalar by a vector.
Public operatorStatic memberMultiply(DoubleComplexVector, DoubleComplex) Multiplies a vector by a scalar.
Public operatorStatic memberMultiply(DoubleComplexVector, DoubleComplexVector) Multiplies two vectors.
Public operatorStatic memberSubtraction(DoubleComplex, DoubleComplexVector) Subtracts a vector from a scalar.
Public operatorStatic memberSubtraction(DoubleComplexVector, DoubleComplex) Subtracts a complex number from a vector.
Public operatorStatic memberSubtraction(DoubleComplexVector, DoubleComplexVector) Subtracts a vector from another vector.
Public operatorStatic memberUnaryNegation(DoubleComplexVector) Negates the elements in this vector.
Top
Fields
 NameDescription
Public fieldStatic memberXmlDataElement XML data element name.
Public fieldStatic memberXmlDatumElement XML datum element name.
Public fieldStatic memberXmlLengthAttribute XML length attribute name.
Top
See Also