GpuIndicatorCalculatorProvider

StockSharp.Algo.Gpu

Provider that discovers and returns GPU calculators associated with indicators.

Eigenschaften

All
public IReadOnlyDictionary<Type, Type> All { get; }
value = gpuIndicatorCalculatorProvider.All

All discovered GPU calculator types. Key: indicator type, Value: GPU calculator type.

Methoden

Clear
public void Clear()
gpuIndicatorCalculatorProvider.Clear()

Remove all mappings.

Create
public IGpuIndicatorCalculator Create(Context context, Accelerator accelerator, Type calculatorType)
result = gpuIndicatorCalculatorProvider.Create(context, accelerator, calculatorType)

Create GPU calculator for specified indicator type.

context
ILGPU context.
accelerator
ILGPU accelerator.
calculatorType
IGpuIndicatorCalculator

Rückgabe: Instance implementing IGpuIndicatorCalculator or if not found.

Init
public void Init()
gpuIndicatorCalculatorProvider.Init()

Scan current assembly for GPU calculators and build the map.

Register
public void Register(Type indicatorType, Type calculatorType)
gpuIndicatorCalculatorProvider.Register(indicatorType, calculatorType)

Manually register (or replace) a mapping between indicator and GPU calculator.

indicatorType
Indicator type from StockSharp.Algo.Indicators.
calculatorType
GPU calculator type implementing IGpuIndicatorCalculator.
Register``2
public void Register<TIndicator, TCalculator>()
gpuIndicatorCalculatorProvider.Register()

Manually register (or replace) a mapping between indicator and GPU calculator.

TryGetCalculatorType
public bool TryGetCalculatorType(Type indicatorType, Type calculatorType)
result = gpuIndicatorCalculatorProvider.TryGetCalculatorType(indicatorType, calculatorType)

Try get GPU calculator type by indicator type.

indicatorType
Indicator type.
calculatorType
Found GPU calculator type or .

Rückgabe: if mapping exists; otherwise .

Unregister
public bool Unregister(Type indicatorType)
result = gpuIndicatorCalculatorProvider.Unregister(indicatorType)

Unregister mapping by indicator type.

indicatorType
Indicator type to remove mapping for.

Rückgabe: if removed; otherwise .

Unregister``1
public bool Unregister<TIndicator>()
result = gpuIndicatorCalculatorProvider.Unregister()

Unregister mapping by indicator type.

Rückgabe: if removed; otherwise .