(1)Can pointers be private or shared variables in diective using C++?

(2)Can do with array in reduction?

(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.

thanks

2 posts
• Page **1** of **1**

(1)Can pointers be private or shared variables in diective using C++?

(2)Can do with array in reduction?

(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.

thanks

(2)Can do with array in reduction?

(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.

thanks

- huanganiu
**Posts:**1**Joined:**Thu Dec 20, 2007 5:24 pm

huanganiu wrote:(1)Can pointers be private or shared variables in diective using C++?

(2)Can do with array in reduction?

(3)Is reduction(+:P->a) correct? P is a calss object,a is a private variables of class.

thanks

(1) Yes, pointers can be private or shared

(2)No, there are no array reductions in C/C++

(3)No, reductions can occur only on top-level objects.

- lfm
**Posts:**135**Joined:**Sun Oct 21, 2007 4:58 pm**Location:**OpenMP ARB

2 posts
• Page **1** of **1**

Users browsing this forum: Google [Bot], Yahoo [Bot] and 10 guests