C# Class Encog.Engine.Util.EngineArray

Simple array utilities for Encog.
显示文件 Open project: encog/encog-silverlight-core

Public Methods

Method Description
AllocateBool2D ( int rows, int cols ) : bool[][]

Allocate a 2D array of bools.

AllocateDouble2D ( int rows, int cols ) : double[][]

Allocate a 2D array of doubles.

ArrayCopy ( double input ) : double[]

Copy a double array.

ArrayCopy ( double source ) : double[][]

Copy a 2d array.

ArrayCopy ( int input ) : int[]

Copy an int array.

ArrayCopy ( double src, double dst ) : void

Completely copy one array into another.

ArrayCopy ( double source, float target ) : void

Copy a double array to a float array.

ArrayCopy ( double source, int sourceIndex, double output, int targetIndex, int size ) : void

Copy an array of doubles.

ArrayCopy ( float source, double target ) : void

Copy a float array to a double array.

ArrayCopy ( int src, int dst ) : void

Completely copy one array into another.

Fill ( double target, int value ) : void

Fill the array with the specified value.

Fill ( float target, int value ) : void

Fill the array with the specified value.

FindStringInArray ( String search, String searchFor ) : int

Search for a string in an array.

ListToDouble ( IList list ) : double[]

Convert the collection to an array list of doubles.

VectorProduct ( double a, double b ) : double

Calculate the product of two vectors (a scalar value).

Private Methods

Method Description
Fill ( double p, double value ) : void

Fill the specified array with the specified value.

Method Details

AllocateBool2D() public static method

Allocate a 2D array of bools.
public static AllocateBool2D ( int rows, int cols ) : bool[][]
rows int The number of rows.
cols int The number of columns.
return bool[][]

AllocateDouble2D() public static method

Allocate a 2D array of doubles.
public static AllocateDouble2D ( int rows, int cols ) : double[][]
rows int The number of rows.
cols int The number of columns.
return double[][]

ArrayCopy() public static method

Copy a double array.
public static ArrayCopy ( double input ) : double[]
input double The array to copy.
return double[]

ArrayCopy() public static method

Copy a 2d array.
public static ArrayCopy ( double source ) : double[][]
source double The source.
return double[][]

ArrayCopy() public static method

Copy an int array.
public static ArrayCopy ( int input ) : int[]
input int The array to copy.
return int[]

ArrayCopy() public static method

Completely copy one array into another.
public static ArrayCopy ( double src, double dst ) : void
src double Source array.
dst double Destination array.
return void

ArrayCopy() public static method

Copy a double array to a float array.
public static ArrayCopy ( double source, float target ) : void
source double The double array.
target float The float array.
return void

ArrayCopy() public static method

Copy an array of doubles.
public static ArrayCopy ( double source, int sourceIndex, double output, int targetIndex, int size ) : void
source double The source array.
sourceIndex int The source index.
output double The output array.
targetIndex int The output index.
size int The size to copy.
return void

ArrayCopy() public static method

Copy a float array to a double array.
public static ArrayCopy ( float source, double target ) : void
source float The double array.
target double The float array.
return void

ArrayCopy() public static method

Completely copy one array into another.
public static ArrayCopy ( int src, int dst ) : void
src int Source array.
dst int Destination array.
return void

Fill() public static method

Fill the array with the specified value.
public static Fill ( double target, int value ) : void
target double The array to fill.
value int The value to fill.
return void

Fill() public static method

Fill the array with the specified value.
public static Fill ( float target, int value ) : void
target float The array to fill.
value int The value to fill.
return void

FindStringInArray() public static method

Search for a string in an array.
public static FindStringInArray ( String search, String searchFor ) : int
search String Where to search.
searchFor String What we are looking for.
return int

ListToDouble() public static method

Convert the collection to an array list of doubles.
public static ListToDouble ( IList list ) : double[]
list IList The list to convert.
return double[]

VectorProduct() public static method

Calculate the product of two vectors (a scalar value).
public static VectorProduct ( double a, double b ) : double
a double First vector to multiply.
b double Second vector to multiply.
return double