ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
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.
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.0.0 (5.5.7503.3146)
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: RetLogicalA new ILNumerics array with copies of the given values and the given shape.
Remarks
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