[This is preliminary documentation and is subject to change.]

Convert an array of booleans to an array of integers. Used for some low-level calls that require an array of logical ints to express boolean values.

Namespace:  MPI
Assembly:  MPI (in MPI.dll)
Version: 0.6.0.0 (0.6.0.0)

Syntax

C#
protected static int[] BoolToInt(
	bool[] arr
)
Visual Basic (Declaration)
Protected Shared Function BoolToInt ( _
	arr As Boolean() _
) As Integer()
Visual C++
protected:
static array<int>^ BoolToInt(
	array<bool>^ arr
)

Parameters

arr
Type: array< System..::.Boolean >[]()[]
An array to convert.

Return Value

An array of ints with values of 0 and/or 1 corresponding to the values in the input array.

See Also