TensorPrimitives.IsPow2All<T>(ReadOnlySpan<T>) メソッド

定義

指定したテンソル内のすべての値が 2 の累乗であるかどうかを計算します。

public:
generic <typename T>
 where T : System::Numerics::IBinaryNumber<T> static bool IsPow2All(ReadOnlySpan<T> x);
public static bool IsPow2All<T>(ReadOnlySpan<T> x) where T : System.Numerics.IBinaryNumber<T>;
static member IsPow2All : ReadOnlySpan<'T (requires 'T :> System.Numerics.IBinaryNumber<'T>)> -> bool (requires 'T :> System.Numerics.IBinaryNumber<'T>)
Public Shared Function IsPow2All(Of T As IBinaryNumber(Of T)) (x As ReadOnlySpan(Of T)) As Boolean

型パラメーター

T

パラメーター

x
ReadOnlySpan<T>

スパンとして表されるテンソル。

返品

true x内のすべての値が 2 の累乗である場合は。それ以外の場合はfalsexが空の場合は、falseが返されます。

適用対象