ILNumerics Ultimate VS

ILMathlogical 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.5.7503.3146)

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


Type: SystemBoolean
Values to be copied to the new ILNumerics array.
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.

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]


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