36 #define defineTraits(Type, Prefix) \ 39 const char* const Foam::Vector<Type>::vsType::componentNames[] = \ 45 const Foam::Vector<Type> Foam::Vector<Type>::vsType::zero \ 47 Vector<Type>::uniform(0) \ 51 const Foam::Vector<Type> Foam::Vector<Type>::vsType::one \ 53 Vector<Type>::uniform(1) \ 57 const Foam::Vector<Type> Foam::Vector<Type>::vsType::max \ 59 Vector<Type>::uniform(Prefix##Max) \ 63 const Foam::Vector<Type> Foam::Vector<Type>::vsType::min \ 65 Vector<Type>::uniform(-Prefix##Max) \ 69 const Foam::Vector<Type> Foam::Vector<Type>::vsType::rootMax \ 71 Vector<Type>::uniform(::sqrt(double(Prefix##Max))) \ 75 const Foam::Vector<Type> Foam::Vector<Type>::vsType::rootMin \ 77 Vector<Type>::uniform(-::sqrt(double(Prefix##Max))) \ static const char *const typeName
#define defineTraits(Type, Prefix)