ILNumerics Ultimate VSILMathlogical Method (Boolean, InArrayInt64, StorageOrders)ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Creates a new logical array from the values provided in values with the shape given by size.

[ILNumerics Computing Engine]

Namespace: ILNumerics
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.3.0.0 (5.3.7131.2749)
Syntax

public static RetLogical logical(
	bool[] values,
	InArray<long> size,
	StorageOrders order = StorageOrders.ColumnMajor
)

Parameters

values
Type: SystemBoolean
Values to be copied to the new ILNumerics array.
size
Type: ILNumericsInArrayInt64
The size of the new ILNumerics array. Number of elements must correspond to the number of values in values.
order (Optional)
Type: ILNumericsStorageOrders
[Optional] Storage order for the new ILNumerics array. Default: (ColumnMajor).

Return Value

Type: RetLogical
A new ILNumerics array with copies of the given values and the given shape.
Remarks

A copy is made from values. The array values is not referenced by ILNumerics after the function returns.

Make sure that the number of elements configured by the dimension lengths in size matches the number of elements in values.

[ILNumerics Computing Engine]

Examples

Assert.IsTrue(logical(new[] { true }, size(1)) == true);
See Also

Reference