Click or drag to resize

DoubleVector Methods

The DoubleVector type exposes the following members.

Methods
 NameDescription
Public methodStatic memberAdd(Double, DoubleVector) Adds a scalar and a vector.
Public methodStatic memberAdd(DoubleVector, DoubleVector) Adds two vectors.
Public methodStatic memberAdd(DoubleVector, Double) Adds a vector and a scalar.
Public methodStatic memberAdd(Double, DoubleVector, DoubleVector) Adds a scalar and a vector and puts the result into another vector.
Public methodStatic memberAdd(DoubleVector, DoubleVector, DoubleVector) Adds two vectors and puts the result into a third vector.
Public methodStatic memberAdd(DoubleVector, Double, DoubleVector) Adds a vector and a scalar and puts the result into another vector.
Public methodAppend(Double) Appends the given element to this vector.
Public methodAppend(DoubleVector) Appends the given vector to this vector.
Public methodApply(FuncDouble, 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(FuncDouble, Double, Double, DoubleVector) 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(FuncDouble, Double, Double, Double) 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 double-precision value.
Public methodApply(FuncDouble, Int32, Double, 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 methodStatic memberDecrement Decrements the elements in a 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(Double, DoubleVector) Divides a scalar by a vector.
Public methodStatic memberDivide(DoubleVector, DoubleVector) Divides a vector by another vector.
Public methodStatic memberDivide(DoubleVector, Double) Divides a vector by a scalar.
Public methodStatic memberDivide(Double, DoubleVector, DoubleVector) Divides a scalar by a vector and puts the result into another vector.
Public methodStatic memberDivide(DoubleVector, DoubleVector, DoubleVector) Divides one vector by another vector and puts the result into a third vector.
Public methodStatic memberDivide(DoubleVector, Double, DoubleVector) Divides a vector by a scalar and puts the result into another 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 methodGetDoubleEnumerator Creates an IDoubleEnumerator out of the data elements in this vector.
Public methodGetEnumerator Creates an IEnumerator{double} 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(Double) Adds the specified value to each element in the vector.
Public methodStatic memberIncrement(DoubleVector) Increments the elements in a vector.
Public methodInfinityNorm Computes the infinity-norm of this vector.
Public methodStatic memberMultiply(Double, DoubleVector) Multiplies a scalar with a vector.
Public methodStatic memberMultiply(DoubleComplex, DoubleVector) Multiplies a complex scalar by a vector.
Public methodStatic memberMultiply(DoubleVector, DoubleComplex) Multiplies a vector by a complex scalar.
Public methodStatic memberMultiply(DoubleVector, DoubleVector) Multiplies two vectors.
Public methodStatic memberMultiply(DoubleVector, Double) Multiplies a vector with a scalar.
Public methodStatic memberMultiply(Double, DoubleVector, DoubleVector) Multiplies a scalar and a vector and puts the result into another vector.
Public methodStatic memberMultiply(DoubleVector, DoubleVector, DoubleVector) Multiplies two vectors and puts the result into a third vector.
Public methodStatic memberMultiply(DoubleVector, Double, DoubleVector) Multiplies a vector and a scalar and puts the result into another 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 DoubleVector instance from a given string representation.
Public methodStatic memberParse(TextReader) Constructs a DoubleVector instance from the given text reader.
Public methodStatic memberParse(String, NumberStyles) Returns a new DoubleVector instance from a given string representation using the specified style.
Public methodStatic memberParse(TextReader, NumberStyles) Constructs a DoubleVector instance from a given text reader using the specified style.
Public methodCode exampleReadXml Generates a DoubleVector instance form its XML representation.
Example
The vector: [ 1 2 3 ] 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(Double) Sets the data elements of this vector to the specified value.
Public methodSet(Slice, Double) 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(Double, DoubleVector) Subtracts a vector from a scalar.
Public methodStatic memberSubtract(DoubleVector, DoubleVector) Subtracts a vector from a vector.
Public methodStatic memberSubtract(DoubleVector, Double) Subtracts a scalar from a vector.
Public methodStatic memberSubtract(Double, DoubleVector, DoubleVector) Subtracts a vector from a scalar and puts the result into another vector.
Public methodStatic memberSubtract(DoubleVector, DoubleVector, DoubleVector) Subtracts a vector from a second vector and puts the result into a third vector.
Public methodStatic memberSubtract(DoubleVector, Double, DoubleVector) Subtracts a scalar from a vector and puts the result into another vector.
Public methodToArray Copies data into a new array and returns it.
Public methodToDataTable Creates a data table of one column that contains the values in this vector.
Public methodToDataTable(String) Creates a data table of one column that contains the values in this vector.
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(FuncDouble) Modifies the elements of this vector by applying the given no-argument function to each element.
Public methodTransform(FuncDouble, Double) Modifies the elements of this vector by applying the given unary function to each element.
Public methodTransform(FuncDouble, Double, Double, DoubleVector) 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(FuncDouble, Double, Double, Double) 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 double-precision value.
Public methodTransform(FuncDouble, Int32, Double, Int32) Modifies the contents of this vector by applying the given function to each element. The first parameter to the function is the vector element; the second parameter is the passed integer value.
Public methodTwoNorm Computes the 2-norm of this vector.
Public methodTwoNormSquared Computes the 2-norm squared 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 2 3 ] would be serialized as:
Top
See Also