C# Class numl.Math.LinearAlgebra.Vector

A vector.
显示文件 Open project: sethjuarez/numl Class Usage Examples

Public Methods

Method 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 method

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.
return Vector

Calc() public static method

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.
return Vector

Combine() public static method

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

ContainsNaN() public static method

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

Diag() public static method

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

Diag() public static method

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.
return Matrix

Dot() public static method

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

Exp() public static method

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

IsNaN() public static method

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

Log() public static method

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

Norm() public static method

Normals.
public static Norm ( Vector x ) : double
x Vector The Vector to process.
return double

Norm() public static method

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.
return double

NormRand() public static method

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.
return Vector

Ones() public static method

Ones.
public static Ones ( int n ) : Vector
n int The int to process.
return Vector

Outer() public static method

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.
return Matrix

Prod() public static method

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

Rand() public static method

Rands.
public static Rand ( int n ) : Vector
n int The int to process.
return Vector

Round() public static method

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

SortOrder() public static method

Sort order.
public static SortOrder ( Vector vector ) : Vector
vector Vector The vector.
return Vector

Sum() public static method

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

Zeros() public static method

Zeros.
public static Zeros ( int n ) : Vector
n int The int to process.
return Vector

operator() public static method

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

operator() public static method

Mod operator.
public static operator ( ) : Vector
return Vector

operator() public static method

Inequality operator.
public static operator ( ) : bool
return bool