13#include <util/mpi/MpiStructBuilder.h>
27 if (v1.elem_[i] != v2.elem_[i]) {
38 if (v1.elem_[i] != v2[i]) {
46 {
return (v2 == v1); }
51 {
return !(v1 == v2); }
55 {
return !(v1 == v2); }
59 {
return !(v2 == v1); }
67 in >> vector.elem_[i];
78 out.width(IntVector::Width);
79 out << vector.elem_[i];
115 static int nCall = 0;
An IntVector is an integer Cartesian vector.
static const IntVector Zero
Zero IntVector.
static void initStatic()
Initialize static IntVector::Zero.
static void commitMpiType()
Commit MPI datatype MpiTraits<IntVector>::type.
A MpiStructBuilder objects is used to create an MPI Struct datatype.
void addMember(void *memberAddress, MPI::Datatype type, int count=1)
Add a new member variable to the type map.
void setBase(void *objectAddress)
Set address of an class instance.
void commit(MPI::Datatype &newType)
Build and commit a user-defined MPI Struct datatype.
File containing preprocessor macros for error handling.
const int Dimension
Dimensionality of space.
Utility classes for scientific computation.
bool operator==(Polynomial< T > const &a, Polynomial< T > const &b)
Equality operator for polynomials.
std::istream & operator>>(std::istream &in, Pair< Data > &pair)
Input a Pair from an istream.
std::ostream & operator<<(std::ostream &out, const Pair< Data > &pair)
Output a Pair to an ostream, without line breaks.
bool operator!=(Polynomial< T > const &a, Polynomial< T > const &b)
Inequality operator for polynomials.