다음을 통해 공유


norm_2 클래스

두 개의 일반 숫자의 짧은 벡터를 나타냅니다.

구문

class norm_2;

멤버

공용 Typedefs

이름 설명
value_type

공용 생성자

속성 설명
norm_2 생성자 오버로드됨. 기본 생성자는 0을 사용하여 모든 요소를 초기화합니다.

공용 메서드

이름 설명
norm_2::get_x
norm_2::get_xy
norm_2::get_y
norm_2::get_yx
norm_2::ref_g
norm_2::ref_r
norm_2::ref_x
norm_2::ref_y
norm_2::set_x
norm_2::set_xy
norm_2::set_y
norm_2::set_yx

Public 연산자

이름 설명
norm_2::operator-
norm_2::operator--
norm_2::operator*=
norm_2::operator/=
norm_2::operator++
norm_2::operator+=
norm_2::operator=
norm_2::operator-=

공용 상수

이름 설명
크기 상수

공용 데이터 멤버

이름 설명
norm_2::g
norm_2::gr
norm_2::r
norm_2::rg
norm_2::x
norm_2::xy
norm_2::y
norm_2::yx

상속 계층 구조

norm_2

요구 사항

헤더: amp_short_vectors.h

네임스페이스: 동시성::그래픽

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
초기화하는 데 사용되는 개체입니다.

size

static const int size = 2;

참고 항목

Concurrency::graphics 네임스페이스