Represents a vector, a one-dimensional array of real numbers.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public MustInherit Class Vector _
	Implements ICloneable, IFormattable, IList(Of Double), ICollection(Of Double), IEnumerable(Of Double), IEnumerable
C#
public abstract class Vector : ICloneable, IFormattable, IList<double>, ICollection<double>, IEnumerable<double>, IEnumerable
C++
public ref class Vector abstract : ICloneable, IFormattable, IList<double>, ICollection<double>, IEnumerable<double>, IEnumerable

Methods

IconTypeDescription
static memberAbs(Vector)
Returns a Vector whose components are the absolute values of the components of another vector.
AbsoluteMax()
Returns the value of the component in this Vector that has the largest absolute value.
AbsoluteMaxIndex()
Returns the index of the component in this Vector that has the largest absolute value.
AbsoluteMin()
Returns the value of the component in this Vector that has the smallest absolute value.
AbsoluteMinIndex()
Returns the index of the component in this Vector that has the smallest absolute value.
Add(Vector)
Adds another vector to this vector.
Add(Double, Vector)
Adds a scaled vector to this vector.
Add(Matrix, Vector)
Adds the product of a Matrix and a Vector to this Vector.
Add(Double, Matrix, Vector)
Adds the scaled product of a Matrix and a Vector to this Vector.
static memberAdd(Vector, Vector)
Adds two Vector values.
static memberAddition(Vector, Vector)
Adds two Vector values.
Apply(RealFunction)
Applies a function to the elements of a Vector.
static memberApply(RealFunction, Vector)
Applies a function to the elements of a Vector and returns the result in a new vector.
Clone()
Makes a copy of this Vector.
Clone(CloningMethod)
Makes a copy of this Vector using the specified method.
CloneData()
If possible, gives this instance its own copy of its elements.
static memberComponentwiseDivide(Vector, Vector)
Divides the components of a Vector by the corresponding components of another vector.
ComponentwiseDivide(Vector)
Divides the components of this instance by the corresponding components of another vector.
static memberComponentwiseMultiply(Vector, Vector)
Multiplies the components of a Vector by the corresponding components of another vector.
ComponentwiseMultiply(Vector)
Multiplies the components of this instance by the corresponding components of another vector.
CopyTo(Vector, Int32)
Copies the components of this Vector to another vector starting at the specified position.
CopyTo(Vector)
Copies the components of this Vector to another vector.
CopyTo(Double[]())
Copies the components of this Vector to another vector.
static memberCos(Vector)
Returns a Vector whose components are the cosines of the components of another vector.
static memberDivide(Vector, Double)
Divides a Vector by a constant.
static memberDivision(Vector, Double)
Divides a Vector by a constant.
DotProduct(Vector)
Returns the dot product of this vector with another vector.
static memberDotProduct(Vector, Vector)
Returns the dot product of two vectors.
static memberEquality(Vector, Vector)
Returns a value indicating whether two instances of Vector are equal.
Equals(Object)
Determines whether the specified Object is equal to the current Vector.
static memberExp(Vector)
Returns a Vector whose components are the exponential of the components of another vector.
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetComponents()
Gets the components of the Vector.
GetEnumerator()
Returns a VectorEnumerator for this Vector.
GetHashCode()
Returns the hash code for this instance.
GetObjectData(SerializationInfo, StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.
GetSubvector(Range)
Returns a vector whose components are a subset of the components of this instance
GetSubvector(Int32, Int32)
Returns a vector whose components are a subset of the components of this instance
GetSubvector(Int32, Int32, Int32)
Returns a vector whose components are a subset of the components of this instance
GetSubvector(Int32, Int32, Int32, Intent)
Returns a vector whose components are a subset of the components of this instance
GetSum()
Gets the sum of the components of the vector.
GetType()
Gets the Type of the current instance.
GetValue(Int32)
Gets the vector component at the specified position.
static memberInequality(Vector, Vector)
Returns a value indicating whether two instances of Vector are not equal.
static memberInverse(Vector)
Returns a Vector whose components are the inverses (reciprocals) of the components of another vector.
IsComponentWritable(Int32)
Gets a value indicating whether the value of the component at the specified index can be changed.
static memberLog(Vector)
Returns a Vector whose components are the logarithms of the components of another vector.
Max()
Returns the value of the largest component in this Vector.
static memberMax(Vector, Vector)
Returns a Vector whose components are the maximums of the components of two vectors.
static memberMax(Double, Vector)
Returns a Vector whose components are the maximum of the components of a vector and a real number..
static memberMax(Vector, Double)
Returns a Vector whose components are the maximum of the components of a vector and a real number..
MaxIndex()
Returns the index of the largest component in this Vector.
MemberwiseClone()
Creates a shallow copy of the current Object.
Min()
Returns the value of the smallest component in this Vector.
static memberMin(Vector, Vector)
Returns a Vector whose components are the minimums of the components of two vectors.
static memberMin(Vector, Double)
Returns a Vector whose components are the minimums of the components of a vector and a real number.
static memberMin(Double, Vector)
Returns a Vector whose components are the minimums of the components of a vector and a real number.
MinIndex()
Returns the index of the smallest component in this Vector.
Multiply(Double)
Multiplies a vector by a given factor.
Multiply(Matrix)
Adds the scaled product of a Matrix and a Vector to this Vector.
Multiply(Matrix, MatrixOperationSide)
Multiplies a Vector by a Matrix.
static memberMultiply(Double, Vector)
Multiplies a Vector by a constant.
static memberMultiply(Double, Vector)
Multiplies a Vector by a constant.
static memberMultiply(Vector, Double)
Multiplies a Vector by a constant.
static memberNegate(Vector)
Negates a Vector.
Norm()
Returns the two-norm of the Vector.
Norm(Int32)
Returns the norm of the specified order of this Vector.
Norm(Double)
Returns the norm of the specified order of this Vector.
Normalize()
Scales the Vector to make its two-norm equal to one.
NormInternal(Int32)
Returns the norm of the specified order of this Vector.
NormInternal(Double)
Returns the norm of the specified order of this Vector.
NormSquared()
Returns the square of the two-norm of this Vector.
OneNorm()
Returns the one-norm of this Vector.
static memberPow(Vector, Double)
Returns a Vector whose components are the components of another vector raised to the specified power.
static memberPow(Vector, Int32)
Returns a Vector whose components are the components of another vector raised to the specified power.
SetToZero()
Sets all the components of the Vector to 0.
SetValue(Double, Int32)
Sets the vector component at the specified position to the specified value.
SetValue(Double)
Sets all the components of the Vector to the specified value.
ShallowCopy()
Makes a shallow copy of this Vector.
static memberSin(Vector)
Returns a Vector whose components are the sines of the components of another vector.
static memberSqrt(Vector)
Returns a Vector whose components are the square roots of the components of another vector.
Subtract(Vector)
Subtracts another Vector from this Vector.
Subtract(Matrix, Vector)
Subtracts the product of a Matrix and a Vector from this Vector.
static memberSubtract(Vector, Vector)
Subtracts two Vector values.
static memberSubtraction(Vector, Vector)
Subtracts two Vector values.
static memberSwap(Vector, Vector)
Swaps the elements of two vectors.
SwapElements(Int32, Int32)
Exchanges two elements of the vector.
static memberTan(Vector)
Returns a Vector whose components are the tangents of the components of another vector.
ToGeneralVector()
Makes a copy of this instance and returns it as a GeneralVector.
ToString()
Returns a String representation of this Vector.
ToString(String)
Converts the numeric value of this Vector instance to its equivalent string representation, using the specified format.
ToString(String, IFormatProvider)
Returns a String representation of this GeneralMatrix.
ToStringInternal(StringBuilder, String, IFormatProvider)
Writes a string representation of this Vector to an instance of StringBuilder using the specified number format.
static memberUnaryNegation(Vector)
Negates a Vector.
Zero()
Sets all the components of the Vector to 0.

Constructors

IconTypeDescription
VectorNew(Int32)
Constructs a new Vector with the specified number of components.
VectorNew(SerializationInfo, StreamingContext)
Constructs a new Vector from serialization data.

Properties

IconTypeDescription
Item(Int32)
Gets or sets a specific component of this vector.
Item(Range)
Gets or sets a range of components of the Vector.
Length
Gets the number of elements in the Vector.

Remarks

The Vector class represents a one-dimensional array of double precision floating-point numbers.

The Vector class provides methods and properties for all the common operations on vectors, including Norm(), DotProduct(Vector), as well as retrieving extreme values from a vector.

Overloaded versions of the major arithmetic operators are provided for languages that support them. For languages that don't support operator overloading, equivalent staticSharedstatic methods are supplied.

To allow for greater efficiency, overloaded instance methods are available for many compound operations on vectors.

Inheritance Hierarchy

System.Object
  Extreme.Mathematics.LinearAlgebra.Vector