Click or drag to resize

FloatComplexVector Class

Class FloatComplexVector represents a mathematical vector of FloatComplex numbers.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreFloatComplexVector

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

The FloatComplexVector type exposes the following members.

Constructors
  NameDescription
Public methodFloatComplexVector
Undefined vector. Must be resized before using.
Public methodFloatComplexVector(Int32)
Constructs a FloatComplexVector instance with the given length.
Public methodFloatComplexVector(TextReader)
Constructs a FloatComplexVector instance from the given text reader.
Public methodFloatComplexVector(String)
Constructs a FloatComplexVector instance from a given string representation.
Public methodFloatComplexVector(FloatComplex)
Constructs a FloatComplexVector instance from the contents of the given array.
Public methodFloatComplexVector(FloatComplexVector)
Constructs a deep copy of a FloatComplexVector.
Public methodFloatComplexVector(DataRow, DataRow)
Constructs a FloatComplexVector 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 methodFloatComplexVector(DataRowCollection, DataRowCollection)
Constructs a FloatComplexVector 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 methodFloatComplexVector(DataTable, DataTable)
Constructs a FloatComplexVector 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 methodFloatComplexVector(DataView, DataView)
Constructs a FloatComplexVector 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 methodFloatComplexVector(Int32, FloatComplex)
Constructs a FloatComplexVector instance with the given length, and all values initialized to the given value.
Public methodFloatComplexVector(Int32, RandomNumberGenerator)
Constructs a FloatComplexVector instance from a random number generator.
Public methodFloatComplexVector(TextReader, NumberStyles)
Constructs a FloatComplexVector instance from the given text reader using the specified style.
Public methodFloatComplexVector(String, NumberStyles)
Returns a new FloatComplexVector instance from a given string representation using the specified style.
Public methodFloatComplexVector(FloatVector, FloatVector)
Constructs a FloatComplexVector instance from a vector of real parts and a vector of imaginary parts.
Public methodFloatComplexVector(Int32, FloatComplex, FloatComplex)
Constructs a FloatComplexVector 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 methodFloatComplexVector(Int32, RandomNumberStream, IRandomNumberDistributionSingle)
Constructs a FloatComplexVector instance from a random number generator.
Public methodFloatComplexVector(FloatComplexDataBlock, Int32, Int32)
Constructs a FloatComplexVector instance with the specifed length, stride and referenced data.
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 FloatComplexVector 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(FloatComplex, FloatComplexVector)
Adds a scalar and a vector.
Public methodStatic memberAdd(FloatComplexVector, FloatComplex)
Adds a vector and a scalar.
Public methodStatic memberAdd(FloatComplexVector, FloatComplexVector)
Adds two vectors.
Public methodStatic memberAdd(FloatComplex, FloatComplexVector, FloatComplexVector)
Adds a vector and a complex number and puts the result into another vector.
Public methodStatic memberAdd(FloatComplexVector, FloatComplex, FloatComplexVector)
Adds a vector and a complex number and puts the result into another vector.
Public methodStatic memberAdd(FloatComplexVector, FloatComplexVector, FloatComplexVector)
Adds two vectors and puts the result into a third vector.
Public methodAppend(FloatComplex)
Appends the given element to this vector.
Public methodAppend(FloatComplexVector)
Appends the given vector to this vector.
Public methodApply(FuncFloatComplex, FloatComplex)
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(FuncFloatComplex, Single)
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(FuncFloatComplex, FloatComplex, FloatComplex, FloatComplex)
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 FloatComplex value.
Public methodApply(FuncFloatComplex, FloatComplex, FloatComplex, FloatComplexVector)
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(FuncFloatComplex, Int32, FloatComplex, 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(FloatComplex, FloatComplexVector)
Divides a scalar by a vector.
Public methodStatic memberDivide(FloatComplexVector, FloatComplex)
Divides a vector by a scalar.
Public methodStatic memberDivide(FloatComplexVector, FloatComplexVector)
Divides a vector by another vector.
Public methodStatic memberDivide(FloatComplex, FloatComplexVector, FloatComplexVector)
Divides a complex number by a vector and puts the result into another vector.
Public methodStatic memberDivide(FloatComplexVector, FloatComplex, FloatComplexVector)
Divides a vector by a complex number and puts the result into another vector.
Public methodStatic memberDivide(FloatComplexVector, FloatComplexVector, FloatComplexVector)
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 methodGetEnumerator
Creates an IEnumerator{FloatComplex} out of the data elements in this vector.
Public methodGetFloatComplexEnumerator
Creates an IFloatComplexEnumerator 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(FloatComplex, FloatComplexVector)
Multiplies a scalar with a vector.
Public methodStatic memberMultiply(FloatComplexVector, FloatComplex)
Multiplies a vector with a scalar.
Public methodStatic memberMultiply(FloatComplexVector, FloatComplexVector)
Multiplies two vectors.
Public methodStatic memberMultiply(FloatComplex, FloatComplexVector, FloatComplexVector)
Multiplies a complex number and a vector and puts the result into another vector.
Public methodStatic memberMultiply(FloatComplexVector, FloatComplex, FloatComplexVector)
Multiplies a vector and a complex number and puts the result into another vector.
Public methodStatic memberMultiply(FloatComplexVector, FloatComplexVector, FloatComplexVector)
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(TextReader)
Constructs a FloatComplexVector instance from the given text reader.
Public methodStatic memberParse(String)
Returns a new FloatComplexVector instance from a given string representation.
Public methodStatic memberParse(TextReader, NumberStyles)
Constructs a FloatComplexVector instance from the given text reader using the specified style.
Public methodStatic memberParse(String, NumberStyles)
Returns a new FloatComplexVector instance from a given string representation using the specified style.
Public methodCode exampleReadXml
Generates a FloatComplexVector instance form its XML representation.
Examples
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(FloatComplex)
Sets the data elements of this vector to the specified value.
Public methodSet(Slice, FloatComplex)
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(FloatComplex, FloatComplexVector)
Subtracts a vector from a scalar.
Public methodStatic memberSubtract(FloatComplexVector, FloatComplex)
Subtracts a scalar from a vector.
Public methodStatic memberSubtract(FloatComplexVector, FloatComplexVector)
Subtracts a vector from a vector.
Public methodStatic memberSubtract(FloatComplex, FloatComplexVector, FloatComplexVector)
Subtracts a vector from a complex number and puts the result into another vector.
Public methodStatic memberSubtract(FloatComplexVector, FloatComplex, FloatComplexVector)
Subtracts a complex number from a vector and puts the result into another vector.
Public methodStatic memberSubtract(FloatComplexVector, FloatComplexVector, FloatComplexVector)
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(FuncFloatComplex)
Modifies the elements of this vector by applying the given no-argument function to each element.
Public methodTransform(FuncFloatComplex, FloatComplex)
Modifies the elements of this vector by applying the given unary function to each element.
Public methodTransform(FuncFloatComplex, FloatComplex, FloatComplex, FloatComplex)
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 FloatComplex value.
Public methodTransform(FuncFloatComplex, FloatComplex, FloatComplex, FloatComplexVector)
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(FuncFloatComplex, Int32, FloatComplex, 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.
Examples
The vector: [ (1,0) (2,0) (3,0) ] would be serialized as:
Top
Operators
  NameDescription
Public operatorStatic memberAddition(FloatComplex, FloatComplexVector)
Adds a scalar and a vector.
Public operatorStatic memberAddition(FloatComplexVector, FloatComplex)
Adds a vector and a scalar.
Public operatorStatic memberAddition(FloatComplexVector, FloatComplexVector)
Adds two vectors.
Public operatorStatic memberDivision(FloatComplex, FloatComplexVector)
Divides a scalar by a vector.
Public operatorStatic memberDivision(FloatComplexVector, FloatComplex)
Divides a vector by a scalar.
Public operatorStatic memberDivision(FloatComplexVector, FloatComplexVector)
Divides a vector by another vector.
Public operatorStatic memberEquality
Tests for equality of two vectors. Two vectors are equal if they have the same dimensions and all values are equal.
Public operatorStatic member(FloatVector to FloatComplexVector)
Implicitly converts a FloatVector instance into a FloatComplexVector instance.
Public operatorStatic memberInequality
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(FloatComplex, FloatComplexVector)
Multiplies a scalar by a vector.
Public operatorStatic memberMultiply(FloatComplexVector, FloatComplex)
Multiplies a vector by a scalar.
Public operatorStatic memberMultiply(FloatComplexVector, FloatComplexVector)
Multiplies two vectors.
Public operatorStatic memberSubtraction(FloatComplex, FloatComplexVector)
Subtracts a vector from a scalar.
Public operatorStatic memberSubtraction(FloatComplexVector, FloatComplex)
Subtracts a complex number from a vector.
Public operatorStatic memberSubtraction(FloatComplexVector, FloatComplexVector)
Subtracts a vector from another vector.
Public operatorStatic memberUnaryNegation
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