Tensor.IsNullOrTrue Method

Gets whether the specified boolean tensor is null or a scalar tensor with value true.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public static bool IsNullOrTrue(
	this Tensor<bool>? value
)

Parameters

value  Tensor<Boolean>
The tensor to compare.

Return Value

Boolean
true if value is null or a scalr tensor with value true; otherwise false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Tensor<Boolean>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also