IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Class that is directly derived from MathNet.Numerics.LinearAlgebra.Vector More...
Public Member Functions | |
XVector (int n) | |
Constructs an d2-dimensional vector of zeros. More... | |
XVector (int n, int i) | |
Constructs an d2-dimensional unit vector for i'th coordinate. More... | |
XVector (int n, double value) | |
Constructs an d2-dimensional constant vector. More... | |
XVector (double[] components) | |
Constructs a vector from a 1-D array, directly using the provided array as internal data structure. More... | |
override string | ToString () |
Returns a string representation of this vector in a standard IGLib form. More... | |
void | Resize (int newsize) |
void | AddInplace (XVector v2) |
In-place vector addition. More... | |
XVector | Add (XVector v2) |
In-place vector addition. More... | |
IVector_OldNumerics< double > | GetCopy () |
double | FirstComponent () |
![]() | |
T[] | CopyToArray () |
Copy all elements of this vector to an array. More... | |
Static Public Member Functions | |
static new XVector | Create (double[] components) |
Constructs a vector from a copy of a 1-D array. More... | |
static new XVector | Random (int n, IContinuousGenerator randomDistribution) |
Generates vector with random elements. More... | |
static new XVector | Random (int n) |
Generates vector with random elements uniformly distributed on [0, 1). More... | |
static new XVector | Ones (int n) |
Generates an d2-dimensional vector filled with 1. More... | |
static new XVector | Zeros (int n) |
Generates an d2-dimensional vector filled with 0. More... | |
static new XVector | BasisVector (int n, int i) |
Generates an d2-dimensional unit vector for i-th coordinate. More... | |
static void | Examples () |
Static Protected Member Functions | |
static void | AddRaw (MathNet.Numerics.LinearAlgebra.Vector v1, MathNet.Numerics.LinearAlgebra.Vector v2, MathNet.Numerics.LinearAlgebra.Vector result) |
Raw vector addition. More... | |
Additional Inherited Members | |
![]() | |
int | Length [get] |
Gets the number of rows. More... | |
T | this[int i] [get, set] |
Gets or set the element indexed by i in the Vector . More... | |
Class that is directly derived from MathNet.Numerics.LinearAlgebra.Vector
|
inline |
Constructs an d2-dimensional vector of zeros.
d2 | Dimensionality of vector. |
|
inline |
Constructs an d2-dimensional unit vector for i'th coordinate.
d2 | Dimensionality of vector. |
i | Coordinate index. |
|
inline |
Constructs an d2-dimensional constant vector.
d2 | Dimensionality of vector. |
value | Fill the vector with this scalar value. |
|
inline |
Constructs a vector from a 1-D array, directly using the provided array as internal data structure.
vec | One-dimensional array of doubles. |
|
inlinestatic |
Constructs a vector from a copy of a 1-D array.
|
inlinestatic |
Generates vector with random elements.
d2 | Dimensionality of vector. |
randomDistribution | Continuous Random Distribution or Source |
|
inlinestatic |
Generates vector with random elements uniformly distributed on [0, 1).
d2 | Dimensionality of vector. |
[0, 1)
interval.
|
inlinestatic |
Generates an d2-dimensional vector filled with 1.
d2 | Dimensionality of vector. |
Referenced by IG.Old.XVector.Examples().
|
inlinestatic |
Generates an d2-dimensional vector filled with 0.
d2 | Dimensionality of vector. |
|
inlinestatic |
Generates an d2-dimensional unit vector for i-th coordinate.
d2 | Dimensionality of vector. |
i | Coordinate index. |
|
inline |
Returns a string representation of this vector in a standard IGLib form.
Referenced by IG.Old.XVector.Examples().
|
inline |
|
inlinestaticprotected |
Raw vector addition.
v1 | Left summand. |
v2 | Right Summand. |
result | Result. |
|
inline |
In-place vector addition.
|
inline |
|
inline |
Referenced by IG.Old.XVector.Examples().
|
inlinestatic |
References IG.Old.XVector.FirstComponent(), IG.Old.XVector.Ones(), and IG.Old.XVector.ToString().