IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
IG.Old.XVector Class Reference

Class that is directly derived from MathNet.Numerics.LinearAlgebra.Vector More...

+ Inheritance diagram for IG.Old.XVector:
+ Collaboration diagram for IG.Old.XVector:

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 ()
 
- Public Member Functions inherited from IG.Old.IVector_OldNumerics< T >
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

- Properties inherited from IG.Old.IVector_OldNumerics< T >
int Length [get]
 Gets the number of rows. More...
 
this[int i] [get, set]
 Gets or set the element indexed by i in the Vector. More...
 

Detailed Description

Class that is directly derived from MathNet.Numerics.LinearAlgebra.Vector

Constructor & Destructor Documentation

IG.Old.XVector.XVector ( int  n)
inline

Constructs an d2-dimensional vector of zeros.

Parameters
d2Dimensionality of vector.
IG.Old.XVector.XVector ( int  n,
int  i 
)
inline

Constructs an d2-dimensional unit vector for i'th coordinate.

Parameters
d2Dimensionality of vector.
iCoordinate index.
IG.Old.XVector.XVector ( int  n,
double  value 
)
inline

Constructs an d2-dimensional constant vector.

Parameters
d2Dimensionality of vector.
valueFill the vector with this scalar value.
IG.Old.XVector.XVector ( double[]  components)
inline

Constructs a vector from a 1-D array, directly using the provided array as internal data structure.

Parameters
vecOne-dimensional array of doubles.
See also
Create

Member Function Documentation

static new XVector IG.Old.XVector.Create ( double[]  components)
inlinestatic

Constructs a vector from a copy of a 1-D array.

static new XVector IG.Old.XVector.Random ( int  n,
IContinuousGenerator  randomDistribution 
)
inlinestatic

Generates vector with random elements.

Parameters
d2Dimensionality of vector.
randomDistributionContinuous Random Distribution or Source
Returns
An d2-dimensional vector with random elements distributed according to the specified random distribution.
static new XVector IG.Old.XVector.Random ( int  n)
inlinestatic

Generates vector with random elements uniformly distributed on [0, 1).

Parameters
d2Dimensionality of vector.
Returns
An d2-dimensional vector with uniformly distributedrandom elements in [0, 1) interval.
static new XVector IG.Old.XVector.Ones ( int  n)
inlinestatic

Generates an d2-dimensional vector filled with 1.

Parameters
d2Dimensionality of vector.

Referenced by IG.Old.XVector.Examples().

static new XVector IG.Old.XVector.Zeros ( int  n)
inlinestatic

Generates an d2-dimensional vector filled with 0.

Parameters
d2Dimensionality of vector.
static new XVector IG.Old.XVector.BasisVector ( int  n,
int  i 
)
inlinestatic

Generates an d2-dimensional unit vector for i-th coordinate.

Parameters
d2Dimensionality of vector.
iCoordinate index.
override string IG.Old.XVector.ToString ( )
inline

Returns a string representation of this vector in a standard IGLib form.

Referenced by IG.Old.XVector.Examples().

void IG.Old.XVector.Resize ( int  newsize)
inline
static void IG.Old.XVector.AddRaw ( MathNet.Numerics.LinearAlgebra.Vector  v1,
MathNet.Numerics.LinearAlgebra.Vector  v2,
MathNet.Numerics.LinearAlgebra.Vector  result 
)
inlinestaticprotected

Raw vector addition.

Parameters
v1Left summand.
v2Right Summand.
resultResult.
void IG.Old.XVector.AddInplace ( XVector  v2)
inline

In-place vector addition.

XVector IG.Old.XVector.Add ( XVector  v2)
inline

In-place vector addition.

IVector_OldNumerics<double> IG.Old.XVector.GetCopy ( )
inline
double IG.Old.XVector.FirstComponent ( )
inline

Referenced by IG.Old.XVector.Examples().

static void IG.Old.XVector.Examples ( )
inlinestatic

The documentation for this class was generated from the following file: