FANN C# ArrayAccessor int

Summary
FANN C# ArrayAccessor int
ArrayAccessorProvides fast access to an array of array of ints
Functions and Properties
DisposeDestructs the accessor.
Item
Get
GetEnumeratorReturns an enumerator that can enumerate over the collection of DataAccessors
ArrayCopies the Accessor’s array’s values to arrays and puts then in array
CountThe number of DataAccessors (arrays of ints) this object holds

ArrayAccessor

Provides fast access to an array of array of ints

Inherits from IAccessor when compiled with a target below .NET 4.5 (which is the default for the most compatibility).  Inherits from IReadOnlyList when compiled with at or above .NET 4.5 to allow the user to take advantage of the multitude of extension methods on IReadOnlyList.

Summary
Functions and Properties
DisposeDestructs the accessor.
Item
Get
GetEnumeratorReturns an enumerator that can enumerate over the collection of DataAccessors
ArrayCopies the Accessor’s array’s values to arrays and puts then in array
CountThe number of DataAccessors (arrays of ints) this object holds

Functions and Properties

Dispose

Destructs the accessor.  Must be called manually.

Item

Parameters

indexThe index of the array to return

Return

A DataAccessor that provides fast access to an array of doubles

Get

Parameters

xThe index of the array to access
yThe index in array x to return

Return

A int at position x,y in the array

GetEnumerator

Returns an enumerator that can enumerate over the collection of DataAccessors

Array

Copies the Accessor’s array’s values to arrays and puts then in array

This is expensive.  Consider using Get or array accessors <this>(e.g. accessor[i][j]) to get a specific value.  To get a set of values you can use the array accessor <this>(e.g. accessor[i]) which you can then convert to an array using the DataAccessor::Array property.

Return

An array with arrays of all of the accessor’s values

Count

The number of DataAccessors (arrays of ints) this object holds

Provides fast access to an array of ints
Copies the Accessor’s values to an array
Close