Tensor.SequenceEqual 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SequenceEqual<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>) |
使用 IEquatable{T} 比較元素,判斷兩個序列是否相等。Equals(T)。 |
SequenceEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>) |
使用 IEquatable{T} 比較元素,判斷兩個序列是否相等。Equals(T)。 |
SequenceEqual<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>)
使用 IEquatable{T} 比較元素,判斷兩個序列是否相等。Equals(T)。
public:
generic <typename T>
where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
static bool SequenceEqual(System::Numerics::Tensors::TensorSpan<T> % tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % other);
public static bool SequenceEqual<T> (this scoped in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> other) where T : IEquatable<T>;
static member SequenceEqual : TensorSpan * ReadOnlyTensorSpan -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function SequenceEqual(Of T As IEquatable(Of T)) (ByRef tensor As TensorSpan(Of T), ByRef other As ReadOnlyTensorSpan(Of T)) As Boolean
類型參數
- T
參數
- tensor
- TensorSpan<T>
- other
- ReadOnlyTensorSpan<T>
傳回
適用於
SequenceEqual<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)
使用 IEquatable{T} 比較元素,判斷兩個序列是否相等。Equals(T)。
public:
generic <typename T>
where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
static bool SequenceEqual(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % other);
public static bool SequenceEqual<T> (this scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> other) where T : IEquatable<T>;
static member SequenceEqual : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function SequenceEqual(Of T As IEquatable(Of T)) (ByRef tensor As ReadOnlyTensorSpan(Of T), ByRef other As ReadOnlyTensorSpan(Of T)) As Boolean
類型參數
- T
參數
- tensor
- ReadOnlyTensorSpan<T>
- other
- ReadOnlyTensorSpan<T>