Show / Hide Table of Contents

Class TopoArray

Utility class containing methods for construction ITopoArray<T> objects.

Inheritance
object
TopoArray
Namespace: DeBroglie.Topo
Assembly: DeBroglie.dll
Syntax
public static class TopoArray

Methods

| Edit this page View Source

CreateByIndex<T>(Func<int, T>, ITopology)

Constructs an ITopoArray<T> by invoking f at each location in the topology.

Declaration
public static ITopoArray<T> CreateByIndex<T>(Func<int, T> f, ITopology topology)
Parameters
Type Name Description
Func<int, T> f
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

CreateByPoint<T>(Func<Point, T>, ITopology)

Constructs an ITopoArray<T> by invoking f at each location in the topology.

Declaration
public static ITopoArray<T> CreateByPoint<T>(Func<Point, T> f, ITopology topology)
Parameters
Type Name Description
Func<Point, T> f
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[,,], ITopology)

Constructs an ITopoArray<T> from an array. result.Get(x, y, z) == values[x, y, z].

Declaration
public static ITopoArray<T> Create<T>(T[,,] values, ITopology topology)
Parameters
Type Name Description
T[,,] values
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[,,], bool)

Constructs an ITopoArray<T> from an array. result.Get(x, y, z) == values[x, y, z].

Declaration
public static ITopoArray<T> Create<T>(T[,,] values, bool periodic)
Parameters
Type Name Description
T[,,] values
bool periodic
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[,], ITopology)

Constructs an ITopoArray<T> from an array. result.Get(x, y) == values[x, y]

Declaration
public static ITopoArray<T> Create<T>(T[,] values, ITopology topology)
Parameters
Type Name Description
T[,] values
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[,], bool)

Constructs an ITopoArray<T> from an array. result.Get(x, y) == values[x, y]

Declaration
public static ITopoArray<T> Create<T>(T[,] values, bool periodic)
Parameters
Type Name Description
T[,] values
bool periodic
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[], ITopology)

Constructs an ITopoArray<T> from an array. result.Get(i) == values[i]

Declaration
public static ITopoArray<T> Create<T>(T[] values, ITopology topology)
Parameters
Type Name Description
T[] values
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[][], ITopology)

Constructs an ITopoArray<T> from an array. result.Get(x, y) == values[y][x].

Declaration
public static ITopoArray<T> Create<T>(T[][] values, ITopology topology)
Parameters
Type Name Description
T[][] values
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

Create<T>(T[][], bool)

Constructs an ITopoArray<T> from an array. result.Get(x, y) == values[y][x].

Declaration
public static ITopoArray<T> Create<T>(T[][] values, bool periodic)
Parameters
Type Name Description
T[][] values
bool periodic
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
| Edit this page View Source

FromConstant<T>(T, ITopology)

Constructs an ITopoArray<T> from an array. result.Get(x, y, z) == values[x, y, z].

Declaration
public static ITopoArray<T> FromConstant<T>(T value, ITopology topology)
Parameters
Type Name Description
T value
ITopology topology
Returns
Type Description
ITopoArray<T>
Type Parameters
Name Description
T
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX