FunctionBitdotT Method
Returns the sum of products of each bit of a mask multiplied with its weight.
Definition
Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
The sum of products of each bit of a mask multiplied with its weight.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public static T Bitdot<T>(
T mask,
params int[] weights
)
VB
Public Shared Function Bitdot(Of T) (
mask As T,
ParamArray weights As Integer()
) As TParameters
- mask T
- The bit mask.
- weights Int32
- The weights for each bit.
Type Parameters
- T
- The type of the mask.
Return Value
TThe sum of products of each bit of a mask multiplied with its weight.