語言

Vector.All<T>(Vector<T>, T) 方法

定義

判斷向量的所有元素是否等於某一給定值。

public:
generic <typename T>
 static bool All(System::Numerics::Vector<T> vector, T value);
public static bool All<T>(System.Numerics.Vector<T> vector, T value);
static member All : System.Numerics.Vector<'T> * 'T -> bool
Public Function All(Of T) (vector As Vector(Of T), value As T) As Boolean

類型參數

T

向量中專案的型別。

參數

vector
Vector<T>

被檢查元素的向量。

value
T

要檢查的值 vector

傳回

true 若 中 vector 所有元素皆等於; value否則, false。

適用於