TypePreservingBinaryAggregatorGroup.TrySpecialize Method

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4

Overload List

TrySpecialize(Type, IBinaryAggregator) Returns an aggregator for the specified element type.
TrySpecialize<TResult>(BinaryAggregator<TResult, TResult, TResult>) Attempts to create an aggregator specialized to operate on values of the specified type.

TrySpecialize<TResult>(BinaryAggregator<TResult, TResult, TResult>)

Attempts to create an aggregator specialized to operate on values of the specified type.
C#
public abstract bool TrySpecialize<TResult>(
	out BinaryAggregator<TResult, TResult, TResult> aggregator
)

Parameters

aggregator  BinaryAggregator<TResult, TResult, TResult>
On return, the specialized aggregator.

Type Parameters

TResult
The type to specialize for.

Return Value

Boolean
true if a specialized aggregator was created; otherwise false.

TrySpecialize(Type, IBinaryAggregator)

Returns an aggregator for the specified element type.
C#
public override bool TrySpecialize(
	Type type,
	out IBinaryAggregator aggregator
)

Parameters

type  Type
The desired element type.
aggregator  IBinaryAggregator
On return, the aggregator specialized for elements of type type, or null if no specialized aggregator exists.

Return Value

Boolean
true if a specialized aggregator could be created; otherwise false.

See Also