0

Suppose I have an array:

REAL,TARGET :: X(3,3)

I would like to use a pointer array like:

REAL,POINTER :: P(:)

To sequentially access the data stored in X

How can I do this?

0

1 Answer 1

1

Pointer rank remapping allows an array pointer to reference a simply contiguous or rank one target, that is of a different rank to the pointer, using a form of the pointer association statement. For the example in the question:

P(1:9) => X
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.