25 template <
int D,
typename T =
int>
84 template <
int D,
typename T>
87 for (
int i = 0; i < D; ++i) {
103 template <
int D,
typename T>
106 for (
int i = 0; i < D; ++i) {
118 template <
int D,
typename T>
122 for (
int i = 0; i < D; ++i) {
123 if (v1[i] != v2[i]) {
135 template <
int D,
typename T>
139 for (
int i = 0; i < D; ++i) {
140 if (v1[i] != v2[i]) {
152 template <
int D,
typename T>
155 {
return (v2 == v1); }
162 template <
int D,
typename T>
165 {
return !(v1 == v2); }
172 template <
int D,
typename T>
175 {
return !(v1 == v2); }
182 template <
int D,
typename T>
185 {
return !(v2 == v1); }
194 template <
int D,
typename T>
198 for (
int i = 0; i < D; ++i) {
218 template <
int D,
typename T>
222 for (
int i = 0; i < D; ++i) {
240 template <
int D,
typename T>
243 {
return !(v1 <= v2); }
250 template <
int D,
typename T>
253 {
return !(v1 < v2); }
An IntVec<D, T> is a D-component vector of elements of integer type T.
static const int Width
Width of field per Cartesian coordinate in stream IO.
A Vec<D, T><D,T> is a D-component vector with elements of type T.
File containing preprocessor macros for error handling.
C++ namespace for polymer self-consistent field theory (PSCF).
bool operator>(const IntVec< D, T > &v1, const IntVec< D, T > &v2)
Greater than comparison for two IntVec<D, T>s.
bool operator<(const IntVec< D, T > &v1, const IntVec< D, T > &v2)
Less than comparison for two IntVec<D, T>s.
bool operator>=(const IntVec< D, T > &v1, const IntVec< D, T > &v2)
Greater than or equal to comparison for two IntVec<D, T>s.
bool operator<=(const IntVec< D, T > &v1, const IntVec< D, T > &v2)
Less than or equal to comparison for two IntVec<D, T>s.
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.