Vector implementation. This is thin wrapper over 1D array
Constructor | Description |
Full Usage:
Vector(elts)
Parameters:
float[]
-
Elements of array
|
![]() ![]() ![]() ![]() Constructs vector from array of arguments
ExampleThis creates vector with three elements -1,0,1. New array is allocated for this vector: Vector v = new Vector(-1,0,1)Next example creates vector that wraps specified array. Please note that no array copying is made thus changing of source array with change vector elements. double[] arr = new double[] { -1,0,1 }; Vector v = new Vector(arr); |
Instance member | Description | ||||
![]() ![]() ![]() ![]() Returns a vector whose elements are the absolute values of the given vector elements
|
|||||
|
![]() ![]() ![]() ![]() Clones specified vector
|
||||
Full Usage:
this.Equals
Parameters:
obj
Returns: bool
Modifiers: abstract |
![]() ![]() ![]() ![]()
|
||||
Full Usage:
this.EuclideanNorm
Returns: float
|
![]() ![]() ![]() ![]() Gets vector's Euclidean norm
|
||||
Full Usage:
this.GetHashCode
Returns: int
Modifiers: abstract |
![]() ![]() ![]() ![]()
|
||||
Full Usage:
this.[arg1]
Returns: int
Value of vector element at specified index
|
![]() ![]() ![]() ![]() Gets or sets vector element at specified index
|
||||
Full Usage:
this.LInfinityNorm
Returns: float
|
![]() ![]() ![]() ![]() Gets L-infinity norm of the vector
|
||||
Full Usage:
this.Length
Returns: int
|
![]() ![]() ![]() ![]() Gets number of components in a vector
|
||||
Full Usage:
this.MulAdd
Parameters:
Vector
-
Vector to add
factor : float
-
Multiplication factor
|
![]() ![]() ![]() ![]() Adds vector v1 multiplied by factor to this object.
|
||||
Full Usage:
this.Sum
Returns: float
|
![]() ![]() ![]() ![]() Gets vector's Euclidean norm
|
||||
Full Usage:
this.ToArray
Returns: float[]
|
![]() ![]() ![]() ![]() Copies vector to double[] array
|
||||
Full Usage:
this.ToString
Returns: string
String consists from vector components separated by comma.
Modifiers: abstract |
![]() ![]() ![]() ![]() Convers vector to string representation.
|
||||
Full Usage:
this.v
|
![]() ![]() ![]() ![]()
|
Static member | Description |
![]() ![]() ![]() ![]() Multiplies vector a[i] by vector b[j] and returns matrix with components a[i]*b[j]
|
|
![]() ![]() ![]() ![]() Implements multiplication of matrix by vector
|
|
![]() ![]() ![]() ![]() Multiplies a vector by a scalar (per component)
|
|
![]() ![]() ![]() ![]() Multiplies a vector by a scalar (per component)
|
|
![]() ![]() ![]() ![]() Performs scalar multiplication of two vectors
|
|
![]() ![]() ![]() ![]() Sums two vectors. Vectors must have same length.
|
|
![]() ![]() ![]() ![]() Add a scalar to a vector.
|
|
![]() ![]() ![]() ![]() Substracts first vector from second. Vectors must have same length
|
|
![]() ![]() ![]() ![]() Divides vector by a scalar (per component)
|
|
![]() ![]() ![]() ![]() Performs element-wise division of two vectors
|
|
|
![]() ![]() ![]() ![]() Copies content of one vector to another. Vectors must have same length. |
|
![]() ![]() ![]() ![]() Returns Euclidean norm of difference between two vectors.
|
|
![]() ![]() ![]() ![]() Returns L-infinity norm of difference between two vectors.
|
|
![]() ![]() ![]() ![]() Performs linear intepolation between two vectors at specified point
|
|
![]() ![]() ![]() ![]() Returns a vector each of whose elements is the maximal from the corresponding ones of argument vectors. Note that dimensions of the arguments must match.
|
Full Usage:
Vector.Zeros(n)
Parameters:
int
-
Length of vector
Returns: Vector
Constructed vector
|
![]() ![]() ![]() ![]() Constructs vector of specified length filled with zeros
|
|
![]() ![]() ![]() ![]()
|
|
![]() ![]() ![]() ![]()
|
|
![]() ![]() ![]() ![]()
|
|
![]() ![]() ![]() ![]()
|