Reputation: 2620
I don't know Fortran but have to inspect a part of a code written in this language. This code is full of lines similar to this:
matmul(recVecs2p, real((/ i1, i2, i3 /), dp))
I can't find semantics of (/ ... /)
on Google, so I hope I will get an answer here.
Upvotes: 3
Views: 4291
Reputation: 84835
This appears to be a language feature that was introduced in Fortran 90.
A first hint is the mention of this syntax on the Wikipedia article on Fortran 95, where it is referred to as "array-valued constants (constructors)".
Chapter 4 of the Programmer's Guide to Fortran 90, 3nd [sic!] Edition has a little more information about (/ … /)
in Chapter 4.1.4. (Due to the copyright statement I may not reproduce the relevant text passage here, but it's freely accessible through the above hyperlink.)
Upvotes: 6