Vector128.Abs<T>(Vector128<T>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算向量中每个元素的绝对值。
public:
generic <typename T>
where T : value class static System::Runtime::Intrinsics::Vector128<T> Abs(System::Runtime::Intrinsics::Vector128<T> vector);
public static System.Runtime.Intrinsics.Vector128<T> Abs<T> (System.Runtime.Intrinsics.Vector128<T> vector) where T : struct;
static member Abs : System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> -> System.Runtime.Intrinsics.Vector128<'T (requires 'T : struct)> (requires 'T : struct)
Public Function Abs(Of T As Structure) (vector As Vector128(Of T)) As Vector128(Of T)
类型参数
- T
向量中的元素的类型。
参数
- vector
- Vector128<T>
计算其绝对值的向量。
返回
一个矢量,其元素是元素的 vector
绝对值。