Vector Class
public class Vector
This language is not supported or no code example is available.
public ref class Vector
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
Vector() | Vector default constructor | |
Vector(int) | Vector normal constructor |
Name | Description | |
---|---|---|
Abs() | Take an absolute value of a vector, i.e. apply Abs() to each element and return resulting vector | |
AreCompatible(Vector, Vector) | Check if two vectors can be compared, i.e. have the same dimensions | |
ElementDiv(Vector, Vector) | Divide target by the source, element-by-element. | |
ElementMult(Vector, Vector) | Multiply target by the source, element-by-element and return resulting vector | |
Equals(object) | ||
GetHashCode() | ||
IsValid() | Check if this vector is initialized | |
Norm1() | Compute the 1-norm of the vector SUM{ |v[i]| }. | |
Norm2Sqr() | Compute the square of the 2-norm SUM{ v[i]^2 }. | |
NormInf() | Compute the infinity-norm of the vector MAX{ |v[i]| }. | |
Print() | ||
Print(string) | ||
ResizeTo(int) | Resize the vector for a specified number of elements, trying to keep intact as many elements of the old vector as possible. If the vector is expanded, the new elements will be zeroes. | |
Sqr() | Square each element of the vector and return resulting vector | |
Sqrt() | Take square root of all elements and return resulting vector | |
ToString() | ||
Zero() | Fill this vector with zeroes |
Name | Description | |
---|---|---|
Addition | Add the source vector to the target vector and return resulting vector | |
Addition | Add val to every element of the vector and return resulting vector | |
Multiply | Multiply every element of the vector with val and return resulting vector | |
Multiply | Compute the scalar product of two vectors | |
Subtraction | Subtract the source vector from the target vector and return resulting vector | |
Subtraction | Subtract val from every element of the vector and return resulting vector |