norm_2::norm_2 构造函数

默认构造函数,初始化 0 的所有元素。

norm_2() restrict(amp,cpu);
norm_2(
   norm _V0,
   norm _V1
) restrict(amp,cpu);
norm_2(
   float _V0,
   float _V1
) restrict(amp,cpu);
norm_2(
   unorm _V0,
   unorm _V1
) restrict(amp,cpu);
norm_2(
   norm _V
) restrict(amp,cpu);
explicit norm_2(
   float _V
) restrict(amp,cpu);
norm_2(
   const norm_2& _Other
) restrict(amp,cpu);
explicit inline norm_2(
   const uint_2& _Other
) restrict(amp,cpu);
explicit inline norm_2(
   const int_2& _Other
) restrict(amp,cpu);
explicit inline norm_2(
   const float_2& _Other
) restrict(amp,cpu);
explicit inline norm_2(
   const unorm_2& _Other
) restrict(amp,cpu);
explicit inline norm_2(
   const double_2& _Other
) restrict(amp,cpu);

参数

  • _V0
    初始化组件的值 0。

  • _V1
    初始化组件的值 1。

  • _V
    初始化值。

  • _Other
    用于初始化对象。

要求

标题: amp_short_vectors.h

命名空间: 并发:: 图像

请参见

参考

norm_2 类