C# Class numl.Math.LinearAlgebra.Vector

A vector.
Afficher le fichier Open project: sethjuarez/numl Class Usage Examples

Méthodes publiques

Méthode Description
Calc ( Vector v, double>.Func f ) : Vector

Calcs.

Calc ( Vector v, Func f ) : Vector

Calcs.

Combine ( ) : Vector

Combines the given v.

ContainsNaN ( Vector vector ) : bool

Query if 'vector' contains NaN.

Diag ( Vector v ) : Matrix

Diags.

Diag ( Vector v, int n, int d ) : Matrix

Diags.

Dot ( Vector one, Vector two ) : double

Dots.

Exp ( Vector v ) : Vector

Exponents the given v.

IsNaN ( Vector vector ) : bool

Query if 'vector' is NaN.

Log ( Vector v ) : Vector

Logs the given v.

Norm ( Vector x ) : double

Normals.

Norm ( Vector x, double p ) : double

Normals.

NormRand ( int n, double mean, double stdDev = 1, int precision = -1 ) : Vector

Normalise random.

Ones ( int n ) : Vector

Ones.

Outer ( Vector x, Vector y ) : Matrix

Outers.

Prod ( Vector v ) : double

Products the given v.

Rand ( int n ) : Vector

Rands.

Round ( Vector v, int decimals ) : Vector

Rounds.

SortOrder ( Vector vector ) : Vector

Sort order.

Sum ( Vector v ) : double

Sums the given v.

Zeros ( int n ) : Vector

Zeros.

operator ( ) : IEnumerable

Returns an array of matching indices where each value is less than the supplied value.

operator ( ) : Vector

Mod operator.

operator ( ) : bool

Inequality operator.

Method Details

Calc() public static méthode

Calcs.
public static Calc ( Vector v, double>.Func f ) : Vector
v Vector A variable-length parameters list containing v.
f double>.Func The Func<int,double,double> to process.
Résultat Vector

Calc() public static méthode

Calcs.
public static Calc ( Vector v, Func f ) : Vector
v Vector A variable-length parameters list containing v.
f Func The Func<int,double,double> to process.
Résultat Vector

Combine() public static méthode

Combines the given v.
Thrown when the requested operation is invalid.
public static Combine ( ) : Vector
Résultat Vector

ContainsNaN() public static méthode

Query if 'vector' contains NaN.
public static ContainsNaN ( Vector vector ) : bool
vector Vector The vector.
Résultat bool

Diag() public static méthode

Diags.
public static Diag ( Vector v ) : Matrix
v Vector A variable-length parameters list containing v.
Résultat Matrix

Diag() public static méthode

Diags.
public static Diag ( Vector v, int n, int d ) : Matrix
v Vector A variable-length parameters list containing v.
n int The int to process.
d int The int to process.
Résultat Matrix

Dot() public static méthode

Dots.
Thrown when the requested operation is invalid.
public static Dot ( Vector one, Vector two ) : double
one Vector The one.
two Vector The two.
Résultat double

Exp() public static méthode

Exponents the given v.
public static Exp ( Vector v ) : Vector
v Vector A variable-length parameters list containing v.
Résultat Vector

IsNaN() public static méthode

Query if 'vector' is NaN.
public static IsNaN ( Vector vector ) : bool
vector Vector The vector.
Résultat bool

Log() public static méthode

Logs the given v.
public static Log ( Vector v ) : Vector
v Vector A variable-length parameters list containing v.
Résultat Vector

Norm() public static méthode

Normals.
public static Norm ( Vector x ) : double
x Vector The Vector to process.
Résultat double

Norm() public static méthode

Normals.
Thrown when the requested operation is invalid.
public static Norm ( Vector x, double p ) : double
x Vector The Vector to process.
p double The double to process.
Résultat double

NormRand() public static méthode

Normalise random.
public static NormRand ( int n, double mean, double stdDev = 1, int precision = -1 ) : Vector
n int The int to process.
mean double (Optional) the mean.
stdDev double (Optional) the standard development.
precision int (Optional) the precision.
Résultat Vector

Ones() public static méthode

Ones.
public static Ones ( int n ) : Vector
n int The int to process.
Résultat Vector

Outer() public static méthode

Outers.
Thrown when the requested operation is invalid.
public static Outer ( Vector x, Vector y ) : Matrix
x Vector The Vector to process.
y Vector The Vector to process.
Résultat Matrix

Prod() public static méthode

Products the given v.
public static Prod ( Vector v ) : double
v Vector A variable-length parameters list containing v.
Résultat double

Rand() public static méthode

Rands.
public static Rand ( int n ) : Vector
n int The int to process.
Résultat Vector

Round() public static méthode

Rounds.
public static Round ( Vector v, int decimals ) : Vector
v Vector A variable-length parameters list containing v.
decimals int (Optional) the decimals.
Résultat Vector

SortOrder() public static méthode

Sort order.
public static SortOrder ( Vector vector ) : Vector
vector Vector The vector.
Résultat Vector

Sum() public static méthode

Sums the given v.
public static Sum ( Vector v ) : double
v Vector A variable-length parameters list containing v.
Résultat double

Zeros() public static méthode

Zeros.
public static Zeros ( int n ) : Vector
n int The int to process.
Résultat Vector

operator() public static méthode

Returns an array of matching indices where each value is less than the supplied value.
public static operator ( ) : IEnumerable
Résultat IEnumerable

operator() public static méthode

Mod operator.
public static operator ( ) : Vector
Résultat Vector

operator() public static méthode

Inequality operator.
public static operator ( ) : bool
Résultat bool