Represents a Vector with arbitrary components.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class GeneralVector _ Inherits Vector _ Implements ICloneable, ISerializable, IDoubleStorage, IEnumerable(Of Double), IEnumerable |
| C# |
|---|
public sealed class GeneralVector : Vector, ICloneable, ISerializable, IDoubleStorage, IEnumerable<double>, IEnumerable |
| C++ |
|---|
public ref class GeneralVector sealed : public Vector, ICloneable, ISerializable, IDoubleStorage, IEnumerable<double>, IEnumerable |
Methods
| Icon | Type | Description |
|---|---|---|
| AbsoluteMax() |
Returns the value of the component in this
GeneralVector that has the largest absolute
value.
| |
| AbsoluteMaxIndex() |
Returns the index of the component in this
GeneralVector that has the largest absolute
value.
| |
| AbsoluteMin() |
Returns the value of the component in this
GeneralVector that has the smallest absolute
value.
| |
| AbsoluteMinIndex() |
Returns the index of the component in this
GeneralVector that has the smallest absolute
value.
| |
| Add(Double, Vector) |
Adds a scaled Vector to this vector.
| |
| Add(Double, Matrix, Vector) | ||
| Add(GeneralVector, GeneralVector) |
Adds two GeneralVector values.
| |
| Add(Vector) |
Adds another vector to this vector.
| |
| Add(Matrix, Vector) | ||
| Addition(GeneralVector, GeneralVector) |
Adds two GeneralVector values.
| |
| Apply(RealFunction) |
Applies a function to the elements of a GeneralVector.
| |
| Clone(CloningMethod) |
Makes a copy of this Vector using the specified
method.
| |
| CloneData() |
Gives this instance its own copy of its elements.
| |
| ComponentwiseDivide(Vector) |
Divides the components of this instance 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 GeneralVector
to another vector starting at the specified position.
| |
| CopyTo(Double[]()) |
Copies the components of this GeneralVector
to another vector.
| |
| CopyTo(Vector) |
Copies the components of this Vector
to another vector.
| |
| Divide(GeneralVector, Double) |
Divides a GeneralVector by a constant.
| |
| Division(GeneralVector, Double) |
Divides a GeneralVector by a constant.
| |
| DotProduct(Vector) |
Returns the dot product of this vector with another
vector.
| |
| Equals(Object) |
Determines whether the specified Object
is equal to the current GeneralVector.
| |
| Finalize() | ||
| GetComponents() |
Gets the components of this GeneralVector.
| |
| GetEnumerator() |
Returns a GeneralVectorEnumerator for this
GeneralVector.
| |
| GetHashCode() |
Returns the hash code for this instance.
| |
| GetObjectData(SerializationInfo, StreamingContext) |
Populates a SerializationInfo with the data
needed to serialize the target object.
| |
| GetSubvector(Int32, Int32, Int32, Intent) |
Returns a vector that points to a part of
this GeneralVector | |
| 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
| |
| 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.
| |
| Implicit(Double[]()) |
Converts a Double array to a GeneralVector.
| |
| IsComponentWritable(Int32) |
Gets a value indicating whether the value of the component at
the specified index can be changed.
| |
| Max() |
Returns the value of the largest component in this
GeneralVector.
| |
| MaxIndex() |
Returns the index of the largest component in this
GeneralVector.
| |
| MemberwiseClone() | Creates a shallow copy of the current Object. | |
| Min() |
Returns the value of the smallest component in this
GeneralVector.
| |
| MinIndex() |
Returns the index of the smallest component in this
GeneralVector.
| |
| Multiply(Double) |
Multiplies a vector by a given factor.
| |
| Multiply(Double, GeneralVector) |
Multiplies a GeneralVector by a constant.
| |
| Multiply(GeneralMatrix, GeneralVector) |
Multiplies a GeneralVector by a
GeneralMatrix.
| |
| Multiply(Matrix) | ||
| Multiply(Matrix, MatrixOperationSide) | ||
| Multiply(Double, GeneralVector) |
Multiplies a GeneralVector by a constant.
| |
| Multiply(GeneralVector, Double) |
Multiplies a GeneralVector by a constant.
| |
| Multiply(GeneralVector, GeneralMatrix) |
Multiplies a GeneralVector by a
GeneralMatrix.
| |
| Multiply(GeneralMatrix, GeneralVector) |
Multiplies a GeneralVector by a
GeneralMatrix.
| |
| Negate(GeneralVector) |
Negates a GeneralVector.
| |
| 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
GeneralVector.
| |
| NormInternal(Double) |
Returns the norm of the specified order of this
GeneralVector.
| |
| NormSquared() |
Returns the square of the two-norm of this Vector.
| |
| OneNorm() |
Returns the one-norm of this GeneralVector.
| |
| 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 GeneralVector to
the specified value.
| |
| ShallowCopy() |
Makes a shallow copy of this Vector.
| |
| Subtract(GeneralVector, GeneralVector) |
Subtracts two GeneralVector values.
| |
| Subtract(Vector) |
Subtracts another Vector from this Vector.
| |
| Subtract(Matrix, Vector) | ||
| Subtraction(GeneralVector, GeneralVector) |
Subtracts two GeneralVector values.
| |
| Swap(GeneralVector, GeneralVector) |
Swaps the elements of two vectors.
| |
| SwapElements(Int32, Int32) |
Exchanges two elements of the vector.
| |
| ToGeneralVector() |
Makes a copy of this instance and returns it as a
GeneralVector.
| |
| ToString() | ||
| 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 GeneralVector
to an instance of StringBuilder using the specified
number format.
| |
| UnaryNegation(GeneralVector) |
Negates a GeneralVector.
| |
| Zero() |
Sets all the components of the Vector to 0.
|
Constructors
| Icon | Type | Description |
|---|---|---|
| GeneralVectorNew(Int32) |
Constructs a new GeneralVector with the specified
length.
| |
| GeneralVectorNew(Double[]()) |
Constructs a new GeneralVector with the specified
components.
| |
| GeneralVectorNew(Double[](), Boolean) |
Constructs a new GeneralVector with the specified
components.
| |
| GeneralVectorNew(Int32, Double[](), Boolean) |
Constructs a new GeneralVector with the specified
components.
| |
| GeneralVectorNew(Int32, Double[]()) |
Constructs a new GeneralVector with the specified
components.
|
Properties
| Icon | Type | Description |
|---|---|---|
| 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.
| |
| StorageArray |
Gets the Double array that stores
the data for the instance.
| |
| StorageIncrement |
Gets the increment between successive elements of this
instance in the StorageArray.
| |
| StorageOffset |
Gets the index of the first element of this instance
in the StorageArray.
|
Remarks
The GeneralVector 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
Extreme.Mathematics.LinearAlgebra.GeneralVector
Extreme.Mathematics.LinearAlgebra.Vector
Extreme.Mathematics.LinearAlgebra.GeneralVector