.NET Matrix Library
Vector Class Members
See Also  Properties  Methods  Send comments on this topic


The following tables list the members exposed by Vector.

Public Constructors

 NameDescription
public ConstructorVector ConstructorOverloaded.   
Top

Public Properties

 NameDescription
public PropertyDataThis property is used while serializing and deserializing the Vector object and is not intended to be used directly from your code.  
public PropertyDataPtrGets the address of the unmanaged (native) memory block containing the vector's elements.  
public PropertyItemGets or sets a single vector element.  
public PropertyLengthGets or sets the vector length.  
Top

Public Methods

 NameDescription
public MethodAbsSumReturns the sum of magnitudes of the vector elements.  
public Methodstatic (Shared in Visual Basic)AddOverloaded. 

Computes a vector-scalar product and adds the result to a vector. It is defined as:

y=A*x+y

 
public MethodApplyFunctionOverloaded. Returns a new Vector object, whose elements are the result of applying the specified double function to the element of this vector.  
public MethodClearSets the value of all the CVector elements to zero.  
public MethodCloneCreates a duplicate of this Vector object.  
public Methodstatic (Shared in Visual Basic)DivideOverloaded. Divides real vectors.  
public MethodDotProductOverloaded. Returns the dot product of this vector with another vector.  
public MethodEqualsReturns a value indicating whether this Vector object is equal to another vector.  
public MethodFillRandomOverloaded. Fills the Vector object with random values ranging from 0 to 10, rounded to zero decimal places.  
public MethodGetHashCode  
public MethodGetObjectDataImplements the ISerializable interface and returns the data needed to serialize the Vector class.  
public MethodHasINFsReturns a value indicating whether the current vector contains any elements that  evaluate to negative or positive infinity.  
public MethodHasNaNsReturns a value indicating whether the current vector contains any elements that  evaluate to NaN values.  
public MethodIsFiniteReturns a value indicating whether the current vector contains any elements that  evaluate either to NaN or to negative or positive infinity.  
public Methodstatic (Shared in Visual Basic)MultiplyOverloaded. Multiplies a vector by a scalar.  
public MethodNormReturns the Euclidean norm of the vector.  
public MethodNormalizeNormalizes the current vector according to the specified mode.  
public MethodResizeResizes the vector preserving its content.  
public Methodstatic (Shared in Visual Basic)SubtractOverloaded. Subtracts a real vector from a scalar.  
public MethodSumReturns the sum of vector elements.  
public MethodToArrayReturns an array of type double containing the same values as the current vector.  
public MethodToMatrixConverts current vector to a Matrix object.  
public MethodToStringOverloaded. Converts this instance of Vector to a formatted string using the default values for format string, separator, left and right borders, and end of line characters.  
Top

Public Operators

public Operator Addition Overloaded. Adds a scalar and a real vector.
public Operator Division Overloaded. Divides a scalar by a real vector.
public Operator Equality Tests whether two Vector objects represent equal vectors.
public Operator Implicit Type Conversion Overloaded. Converts an array of type double to a Vector object.
public Operator Inequality Tests whether two Vector objects represent non equal vectors.
public Operator Multiplication Overloaded. Multiplies a scalar by a real vector.
public Operator Subtraction Overloaded. Subtracts real vectors.
Top

See Also

.NET Matrix Library Documentation