Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.LinearAlgebra Namespace > Vector Class


Extreme Optimization Mathematics Library for .NET

Vector Methods

The methods of the Vector class are listed below. For a complete list of Vector class members, see the Vector Members topic.

Public Static (Shared) Methods

Abs Returns a Vector whose components are the absolute values of the components of another vector.
AddOverloaded. Adds two Vector values.
ApplyOverloaded. Applies a function to the elements of a Vector and returns the result in a new vector.
ComponentwiseDivideOverloaded. Divides the components of a Vector by the corresponding components of another vector.
ComponentwiseMultiplyOverloaded. Multiplies the components of a Vector by the corresponding components of another vector.
Cos Returns a Vector whose components are the cosines of the components of another vector.
Divide Divides a Vector by a constant.
DotProductOverloaded. Returns the dot product of two vectors.
Exp Returns a Vector whose components are the exponential of the components of another vector.
Inverse Returns a Vector whose components are the inverses (reciprocals) of the components of another vector.
Log Returns a Vector whose components are the logarithms of the components of another vector.
MaxOverloaded. Returns a Vector whose components are the maximums of the components of two vectors.
MinOverloaded. Returns a Vector whose components are the minimums of the components of two vectors.
MultiplyOverloaded. Multiplies a Vector by a constant.
Negate Negates a Vector.
PowOverloaded. Returns a Vector whose components are the components of another vector raised to the specified power.
Sin Returns a Vector whose components are the sines of the components of another vector.
Sqrt Returns a Vector whose components are the square roots of the components of another vector.
SubtractOverloaded. Subtracts two Vector values.
Swap Swaps the elements of two vectors.
Tan Returns a Vector whose components are the tangents of the components of another vector.

Public Instance Methods

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.
AddOverloaded. Adds the scaled product of a Matrix and a Vector to this Vector.
ApplyOverloaded. Applies a function to the elements of a Vector.
CloneOverloaded. Makes a copy of this Vector.
CloneData If possible, gives this instance its own copy of its elements.
ComponentwiseDivideOverloaded. Divides the components of this instance by the corresponding components of another vector.
ComponentwiseMultiplyOverloaded. Multiplies the components of this instance by the corresponding components of another vector.
CopyToOverloaded. Copies the components of this Vector to another vector.
DotProductOverloaded. Returns the dot product of this vector with another vector.
Equals Determines whether the specified Object is equal to the current Vector.
GetComponents Gets the components of the Vector.
GetEnumerator Returns a VectorEnumerator for this Vector.
GetHashCode Returns the hash code for this instance.
GetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
GetSubvectorOverloaded. Returns a vector whose components are a subset of the components of this instance
GetType (inherited from Object)Gets the Type of the current instance.
GetValue Gets the vector component at the specified position.
IsComponentWritable Gets a value indicating whether the value of the component at the specified index can be changed.
MaxOverloaded. Returns the value of the largest component in this Vector.
MaxIndex Returns the index of the largest component in this Vector.
MinOverloaded. Returns the value of the smallest component in this Vector.
MinIndex Returns the index of the smallest component in this Vector.
MultiplyOverloaded. Multiplies a Vector by a Matrix.
NormOverloaded. Returns the two-norm of the Vector.
Normalize Scales the Vector to make its two-norm equal to one.
NormSquared Returns the square of the two-norm of this Vector.
OneNorm Returns the one-norm of this Vector.
SetToZero Sets all the components of the Vector to 0.
SetValueOverloaded. Sets all the components of the Vector to the specified value.
ShallowCopy Makes a shallow copy of this Vector.
SubtractOverloaded. Subtracts another Vector from this Vector.
SwapElements Exchanges two elements of the vector.
ToGeneralVector Makes a copy of this instance and returns it as a GeneralVector.
ToStringOverloaded. Returns a String representation of this GeneralMatrix.
ZeroObsolete. Sets all the components of the Vector to 0.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
NormInternalOverloaded. Returns the norm of the specified order of this Vector.
ToStringInternal Writes a string representation of this Vector to an instance of StringBuilder using the specified number format.

Explicit Interface Implementations

ICloneable.Clone Makes a copy of this Vector.

See Also

Vector Class | Extreme.Mathematics.LinearAlgebra Namespace