|
PSCF v1.3.3
|
PSCF package top-level namespace. More...
Namespaces | |
| namespace | Debye |
| Functions used to compute intramolecular correlation functions. | |
| namespace | FloryHuggins |
| Flory-Huggins theory of spatially homogeneous mixtures. | |
| namespace | PolymerModel |
| Enumeration and functions to specify a model for polymer chains. | |
| namespace | Prdc |
| Periodic fields and crystallography. | |
| namespace | R1d |
| SCFT with real 1D fields. | |
| namespace | Rpc |
| Real periodic fields, SCFT and PS-FTS (CPU). | |
| namespace | Rpg |
| SCFT and PS-FTS with real periodic fields (GPU) | |
| namespace | ThreadArray |
| Global functions and variables to control GPU thread and block counts. | |
| namespace | ThreadMesh |
| Management of multidimensional GPU thread execution configurations. | |
Classes | |
| class | AmbdInteraction |
| Modified interaction to compute residual defn. More... | |
| class | AmIteratorDArray |
| Anderson mixing iterator algorithm using a DArray<double>. More... | |
| class | AmIteratorTmpl |
| Template for Anderson mixing iterator algorithm. More... | |
| class | BlockTmpl |
| Class template for a block solver in a block copolymer. More... | |
| class | CudaRandom |
| Random number generator on GPU. More... | |
| class | DeviceArray |
| Dynamic array on the GPU device with aligned data. More... | |
| class | Edge |
| Descriptor for a block within a block polymer. More... | |
| class | EdgeIterator |
| Edge iterator for graph associated with a polymer. More... | |
| class | EnvironmentBase |
| Base class mask and external field generator. More... | |
| class | FieldComparison |
| Comparison of element-by-element differences between field arrays. More... | |
| class | FieldGeneratorBase |
| Base class for objects that generate fields for a MixAndMatchEnv. More... | |
| class | HostDArray |
| Template for dynamic array stored in host CPU memory. More... | |
| class | Interaction |
| Flory-Huggins excess free energy model. More... | |
| class | IntVec |
| An IntVec<D, T> is a D-component vector of elements of integer type T. More... | |
| class | LuSolver |
| Solve Ax=b by LU decomposition of A. More... | |
| class | Mesh |
| Description of a regular grid of points in a periodic domain. More... | |
| class | MeshIterator |
| Iterator over points in a Mesh<D>. More... | |
| class | MeshIteratorFortran |
| Iterator over points in a mesh in "Fortran" order. More... | |
| class | MixAndMatchEnvTmpl |
| Template class for Environments that mix and match field generators. More... | |
| class | MixtureBase |
| Abstract descriptor for a mixture of polymer and solvent species. More... | |
| class | MixtureTmpl |
| Solvers for a mixture of polymer and solvent species. More... | |
| class | Monomer |
| Descriptor for a monomer type. More... | |
| class | NanException |
| Exception thrown when not-a-number (NaN) is encountered. More... | |
| class | ParameterModifier |
| Base class allowing subclasses to define sweepable parameters. More... | |
| struct | ParameterType |
| Declaration of a specialized sweep parameter type. More... | |
| class | PolymerSpecies |
| Descriptor for a linear or acyclic branched block polymer. More... | |
| class | PolymerTmpl |
| Template for an MDE solver and descriptor for a block polymer. More... | |
| struct | PolymerType |
| Struct containing an enumeration of polymer structure types. More... | |
| class | PropagatorTmpl |
| Template for propagator classes. More... | |
| class | RealVec |
| A RealVec<D, T> is D-component vector with elements of floating type T. More... | |
| class | SolventSpecies |
| Descriptor for a solvent species. More... | |
| class | Species |
| Base class for a molecular species (polymer or solvent). More... | |
| class | SweepTmpl |
| Solve a sequence of problems along a path through parameter space. More... | |
| class | TridiagonalSolver |
| Solver for Ax=b with tridiagonal matrix A. More... | |
| class | Vec |
| A Vec<D, T><D,T> is a D-component vector with elements of type T. More... | |
| class | Vertex |
| A junction or chain end in a block polymer. More... | |
| class | VertexIterator |
| Vertex iterator for graph associated with a polymer. More... | |
Functions | |
| std::istream & | operator>> (std::istream &in, Edge &block) |
| Input stream extractor (>>) for a Edge. | |
| std::ostream & | operator<< (std::ostream &out, Edge const &block) |
| Output stream inserter (<<) for a Edge. | |
| std::istream & | operator>> (std::istream &in, Monomer &monomer) |
| Stream extractor (>>) for a Monomer. | |
| std::ostream & | operator<< (std::ostream &out, const Monomer &monomer) |
| Stream inserter (<<) for a Monomer. | |
| std::istream & | operator>> (std::istream &in, PolymerType::Enum &type) |
| Input stream extractor for a PolymerType::Enum enumeration. | |
| std::ostream & | operator<< (std::ostream &out, PolymerType::Enum const &type) |
| Output stream extractor for a PolymerType::Enum enumeration. | |
| template<class Archive> | |
| void | serialize (Archive &ar, PolymerType::Enum &data, const unsigned int version) |
| Serialize a PolymerType::Enum enumeration. | |
| std::istream & | operator>> (std::istream &in, Species::Ensemble &policy) |
| istream extractor for a Species::Ensemble enumeration. | |
| std::ostream & | operator<< (std::ostream &out, Species::Ensemble policy) |
| ostream inserter for an Species::Ensemble enumeration. | |
| template<class Archive> | |
| void | serialize (Archive &ar, Species::Ensemble &policy, const unsigned int version) |
| Serialize a Species::Ensemble. | |
| void | gpuAssert (cudaError_t err, const char *file, int line) |
| Check if CUDA API function returns cudaSuccess (used by cudaErrorCheck macro). | |
| template<typename CT, typename RT> | |
| RT | real (CT const &a) |
| Return the real part of a complex number. | |
| template<typename CT, typename RT> | |
| RT | imag (CT const &a) |
| Return the imaginary part of a complex number. | |
| template<typename CT, typename RT> | |
| RT | abs (CT const &a) |
| Return absolute magnitude of a complex number. | |
| template<typename CT, typename RT> | |
| RT | absSq (CT const &a) |
| Return square of absolute magnitude of a complex number. | |
| template<typename CT> | |
| void | conj (CT &z, CT const &a) |
| Compute complex conjugate, z = a^*. | |
| template<typename CT> | |
| void | conj (CT &a) |
| In-place complex conjugation of a complex number, a = a^* . | |
| template<typename CT, typename RT> | |
| void | assign (CT &z, RT const &a, RT const &b) |
| Create a complex number from real and imaginary parts, z = a + ib. | |
| template<typename CT, typename RT> | |
| void | assign (CT &z, RT const &a) |
| Assign a real input to a complex variable. | |
| template<typename CT> | |
| void | assign (CT &z, CT const &a) |
| Assign a complex input to a complex variable, z=a. | |
| template<typename CT, typename RT> | |
| void | assign (CT &z, std::complex< RT > const &a) |
| Assign a std::complex input to a complex variable, z=a. | |
| template<typename CT, typename RT> | |
| void | assign (std::complex< RT > &z, CT const &a) |
| Assign a complex input to a std::complex variable, z=a. | |
| template<typename CT> | |
| void | add (CT &z, CT const &a, CT const &b) |
| Addition of two complex numbers, z = a + b. | |
| template<typename CT, typename RT> | |
| void | add (CT &z, CT const &a, RT const &b) |
| Addition of a complex and real number, z = a + b. | |
| template<typename CT> | |
| void | addEq (CT &a, CT const &b) |
| In place addition of complex numbers, a += b. | |
| template<typename CT, typename RT> | |
| void | addEq (CT &a, RT const &b) |
| In place addition of a complex and real number, a += b. | |
| template<typename CT> | |
| void | sub (CT &z, CT const &a, CT const &b) |
| Subtraction of two complex numbers, z = a - b. | |
| template<typename CT, typename RT> | |
| void | sub (CT &z, CT const &a, RT const &b) |
| Subtraction of a real number from a complex number, z = a - b. | |
| template<typename CT> | |
| void | subEq (CT &a, CT const &b) |
| In place subtraction of two complex numbers, a -= b. | |
| template<typename CT, typename RT> | |
| void | subEq (CT &a, RT const &b) |
| In place subtraction of real number from a complex number, a -= b. | |
| template<typename CT, typename RT> | |
| RT | absSqDiff (CT const &a, CT const &b) |
| Return square of the absolute magnitude of a complex difference. | |
| template<typename CT> | |
| void | mul (CT &z, CT const &a, CT const &b) |
| Multiplication of two complex numbers, z = a * b. | |
| template<typename CT, typename RT> | |
| void | mul (CT &z, CT const &a, RT const &b) |
| Multiplication of complex and real numbers, z = a * b. | |
| template<typename CT> | |
| void | mulEq (CT &a, CT const &b) |
| In place multiplication of two complex number, a *= b. | |
| template<typename CT, typename RT> | |
| void | mulEq (CT &a, RT const &b) |
| In place multiplication of a complex and real number, a *= b. | |
| template<typename CT> | |
| void | square (CT &z, CT const &a) |
| Compute complex square of a complex number, z = a * a. | |
| template<typename CT> | |
| void | div (CT &z, CT const &a, CT const &b) |
| Division of two complex numbers, z = a / b . | |
| template<typename CT, typename RT> | |
| void | div (CT &z, CT const &a, RT const &b) |
| Division of a complex number by a real number, z = a / b . | |
| template<typename CT> | |
| void | divEq (CT &a, CT const &b) |
| In place division of two complex number, a /= b. | |
| template<typename CT, typename RT> | |
| void | divEq (CT &a, RT const &b) |
| In place division of a complex number by a real number, a /= b. | |
| template<int D, typename T> | |
| std::istream & | operator>> (std::istream &in, IntVec< D, T > &vector) |
| istream extractor for a IntVec<D, T>. | |
| template<int D, typename T> | |
| std::ostream & | operator<< (std::ostream &out, const IntVec< D, T > &vector) |
| ostream inserter for a IntVec<D, T>. | |
| template<int D, typename T> | |
| bool | operator== (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Equality of two IntVec<D> objects. | |
| template<int D, typename T> | |
| bool | operator== (const IntVec< D, T > &v1, const Vec< D, T > &v2) |
| Equality of an IntVec<D> and a Vec<D, T> | |
| template<int D, typename T> | |
| bool | operator== (const Vec< D, T > &v1, const IntVec< D, T > &v2) |
| Equality of an Vec<D, T> and an IntVec<D, T> | |
| template<int D, typename T> | |
| bool | operator!= (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Inequality of two IntVec<D, T> objects. | |
| template<int D, typename T> | |
| bool | operator!= (const IntVec< D, T > &v1, const Vec< D, T > &v2) |
| Inequality of an IntVec<D> and a Vec<D, T> | |
| template<int D, typename T> | |
| bool | operator!= (const Vec< D, T > &v1, const IntVec< D, T > &v2) |
| Inequality of a Vec<D, T> and an IntVec<D, T> | |
| template<int D, typename T> | |
| bool | operator< (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Less than comparison for two IntVec<D, T>s. | |
| template<int D, typename T> | |
| bool | operator<= (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Less than or equal to comparison for two IntVec<D, T>s. | |
| template<int D, typename T> | |
| bool | operator> (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Greater than comparison for two IntVec<D, T>s. | |
| template<int D, typename T> | |
| bool | operator>= (const IntVec< D, T > &v1, const IntVec< D, T > &v2) |
| Greater than or equal to comparison for two IntVec<D, T>s. | |
| template<int D, typename T> | |
| std::istream & | operator>> (std::istream &in, RealVec< D, T > &vector) |
| istream extractor for a RealVec<D, T>. | |
| template<int D, typename T> | |
| std::ostream & | operator<< (std::ostream &out, const RealVec< D, T > &vector) |
| ostream inserter for a RealVec<D, T>. | |
| template<int D, typename T> | |
| T | dot (Vec< D, T > const &v1, Vec< D, T > const &v2) |
| Return dot product of two vectors. | |
| template<int D, typename T> | |
| Vec< D, T > | operator+ (Vec< D, T > const &v1, Vec< D, T > const &v2) |
| Return the sum of two vectors. | |
| template<int D> | |
| std::istream & | operator>> (std::istream &in, Mesh< D > &mesh) |
| Input stream extractor for reading a Mesh<D> object. | |
| template<int D> | |
| std::ostream & | operator<< (std::ostream &out, Mesh< D > const &mesh) |
| Output stream inserter for writing a Mesh<D> object. | |
| template<> | |
| double | real< fftw_complex, double > (fftw_complex const &a) |
| Return the real part of a complex number. | |
| template<> | |
| double | imag< fftw_complex, double > (fftw_complex const &a) |
| Return the imaginary part of a complex number. | |
| template<> | |
| double | abs< fftw_complex, double > (fftw_complex const &a) |
| Return absolute magnitude of a complex number. | |
| template<> | |
| double | absSq< fftw_complex, double > (fftw_complex const &a) |
| Return square of absolute magnitude of a complex number. | |
| template<> | |
| void | conj (fftw_complex &z, fftw_complex const &a) |
| Compute complex conjugate, z = a^*. | |
| template<> | |
| void | conj (fftw_complex &a) |
| In-place complex conjugation of a complex number, a = a^* . | |
| template<> | |
| void | assign (fftw_complex &z, double const &a, double const &b) |
| Create a complex number from real and imaginary parts, z = a + ib. | |
| template<> | |
| void | assign (fftw_complex &z, double const &a) |
| Assign a real input to a complex variable. | |
| template<> | |
| void | assign (fftw_complex &z, fftw_complex const &a) |
| Assign a complex input to a complex variable. | |
| template<> | |
| void | assign (fftw_complex &z, std::complex< double > const &a) |
| Assign a std::complex input to a complex variable. | |
| template<> | |
| void | assign (std::complex< double > &z, fftw_complex const &a) |
| Assign a complex input to a std::complex variable. | |
| template<> | |
| void | add (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Addition of two complex numbers, z = a + b. | |
| template<> | |
| void | add (fftw_complex &z, fftw_complex const &a, double const &b) |
| Addition of a complex and real number, z = a + b. | |
| template<> | |
| void | addEq (fftw_complex &a, fftw_complex const &b) |
| In place addition of complex numbers, a += b. | |
| template<> | |
| void | addEq (fftw_complex &a, double const &b) |
| In place addition of a complex and real number, a += b. | |
| template<> | |
| void | sub (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Subtraction of two complex numbers, z = a - b. | |
| template<> | |
| void | sub (fftw_complex &z, fftw_complex const &a, double const &b) |
| Subtraction of a real number from a complex number, z = a - b. | |
| template<> | |
| void | subEq (fftw_complex &a, fftw_complex const &b) |
| In place subtraction of two complex numbers, a -= b. | |
| template<> | |
| void | subEq (fftw_complex &a, double const &b) |
| In place subtraction of real number from a complex number, a -= b. | |
| template<> | |
| double | absSqDiff (fftw_complex const &a, fftw_complex const &b) |
| Return square of the absolute magnitude of a complex difference. | |
| template<> | |
| void | mul (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Multiplication of two complex numbers, z = a * b. | |
| template<> | |
| void | mul (fftw_complex &z, fftw_complex const &a, double const &b) |
| Multiplication of complex and real numbers, z = a * b. | |
| template<> | |
| void | mulEq (fftw_complex &a, fftw_complex const &b) |
| In place multiplication of two complex number, a *= b. | |
| template<> | |
| void | mulEq (fftw_complex &a, double const &b) |
| In place multiplication of a complex and real number, a *= b. | |
| template<> | |
| void | square (fftw_complex &z, fftw_complex const &a) |
| Compute complex square of a complex number, z = a * a. | |
| template<> | |
| void | div (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Division of two complex numbers, z = a / b . | |
| template<> | |
| void | div (fftw_complex &z, fftw_complex const &a, double const &b) |
| Division of a complex number by a real number, z = a / b . | |
| template<> | |
| void | divEq (fftw_complex &a, fftw_complex const &b) |
| In place division of two complex number, a /= b. | |
| template<> | |
| void | divEq (fftw_complex &a, double const &b) |
| In place division of a complex number by a real number, a /= b. | |
| std::istream & | operator>> (std::istream &is, fftw_complex &z) |
| Stream extraction operator for fftw_complex. | |
| std::ostream & | operator<< (std::ostream &os, fftw_complex const &z) |
| Stream insertion operator for fftw_complex. | |
| template<> | |
| Prdc::Cuda::cudaReal | real (Prdc::Cuda::cudaComplex const &a) |
| Return the real part of a complex number. | |
| template<> | |
| Prdc::Cuda::cudaReal | imag (Prdc::Cuda::cudaComplex const &a) |
| Return the imaginary part of a complex number. | |
| template<> | |
| Prdc::Cuda::cudaReal | abs (Prdc::Cuda::cudaComplex const &a) |
| Return absolute magnitude of a complex number. | |
| template<> | |
| Prdc::Cuda::cudaReal | absSq (Prdc::Cuda::cudaComplex const &a) |
| Return square of absolute magnitude of a complex number. | |
| template<> | |
| void | conj (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a) |
| Compute complex conjugate, z = a^*. | |
| template<> | |
| void | conj (Prdc::Cuda::cudaComplex &a) |
| In-place complex conjugation of a complex number, a = a^* . | |
| template<> | |
| void | assign (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaReal const &a, Prdc::Cuda::cudaReal const &b) |
| Create a complex number from real and imaginary parts, z = a + ib. | |
| template<> | |
| void | assign (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaReal const &a) |
| Assign a real input to a complex variable. | |
| template<> | |
| void | assign (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a) |
| Assign a complex input to a complex variable. | |
| template<> | |
| void | assign (Prdc::Cuda::cudaComplex &z, std::complex< Prdc::Cuda::cudaReal > const &a) |
| Assign a std::complex input to a complex variable. | |
| template<> | |
| void | assign (std::complex< Prdc::Cuda::cudaReal > &z, Prdc::Cuda::cudaComplex const &a) |
| Assign a complex input to a std::complex variable. | |
| template<> | |
| void | add (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaComplex const &b) |
| Addition of two complex numbers, z = a + b. | |
| template<> | |
| void | add (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaReal const &b) |
| Addition of a complex and real number, z = a + b. | |
| template<> | |
| void | addEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaComplex const &b) |
| In place addition of complex numbers, a += b. | |
| template<> | |
| void | addEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaReal const &b) |
| In place addition of a complex and real number, a += b. | |
| template<> | |
| void | sub (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaComplex const &b) |
| Subtraction of two complex numbers, z = a - b. | |
| template<> | |
| void | sub (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaReal const &b) |
| Subtraction of a real number from a complex number, z = a - b. | |
| template<> | |
| void | subEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaComplex const &b) |
| In place subtraction of two complex numbers, a -= b. | |
| template<> | |
| void | subEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaReal const &b) |
| In place subtraction of real number from a complex number, a -= b. | |
| template<> | |
| Prdc::Cuda::cudaReal | absSqDiff (Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaComplex const &b) |
| Return square of the absolute magnitude of a complex difference. | |
| template<> | |
| void | mul (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaComplex const &b) |
| Multiplication of two complex numbers, z = a * b. | |
| template<> | |
| void | mul (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaReal const &b) |
| Multiplication of complex and real numbers, z = a * b. | |
| template<> | |
| void | mulEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaComplex const &b) |
| In place multiplication of two complex number, a *= b. | |
| template<> | |
| void | mulEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaReal const &b) |
| In place multiplication of a complex and real number, a *= b. | |
| template<> | |
| void | square (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a) |
| Compute complex square of a complex number, z = a * a. | |
| template<> | |
| void | div (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaComplex const &b) |
| Division of two complex numbers, z = a / b . | |
| template<> | |
| void | div (Prdc::Cuda::cudaComplex &z, Prdc::Cuda::cudaComplex const &a, Prdc::Cuda::cudaReal const &b) |
| Division of a complex number by a real number, z = a / b . | |
| template<> | |
| void | divEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaComplex const &b) |
| In place division of two complex number, a /= b. | |
| template<> | |
| void | divEq (Prdc::Cuda::cudaComplex &a, Prdc::Cuda::cudaReal const &b) |
| In place division of a complex number by a real number, a /= b. | |
PSCF package top-level namespace.
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| Edge & | block ) |
Input stream extractor (>>) for a Edge.
The polymerType must be set before an Edge can be read from a stream. The block id must be set explicitly by calling setId, and are not read from an istream. Vertex id values for blocks in a linear polymer must be set explicitly by calling setVertexIds with consecutive values, as done in the function Pscf::PolymerTmpl::readParameters.
Different text representations are used for bead and thread models, and for linear and branched polymers:
Thread model:
In the thread model, if PolymerModel::isThread(), the text representation of an Edge for a branched polymer is:
Here, length is a floating point number. For a linear polymer in the thread model, the vertex ids are omitted, because the vertex ids for block id of linear polymer must be equal to id and id + 1.
Bead model:
In the bead model, if PolymerModel::isBead(), the text representation for a branched polymer is:
where nBead is the integer number of beads in the chain. The corresponding text representation for a bead-spring linear chain omits the vertex ids, as for the thread model.
| in | input stream |
| block | Edge to be read from stream |
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| Edge const & | block ) |
Output stream inserter (<<) for a Edge.
Different text representations are used for linear and branched polymers, as discussed in documentation for the stream extractor (>>) operator. Vertex ids are output only for blocks of branched polymers.
| out | output stream |
| block | Edge to be written to stream |
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| Monomer & | monomer ) |
Stream extractor (>>) for a Monomer.
The text representation is given by the value of the kuhn data member (i.e., the monomer statistical segment length). The type id is thus not read from a stream, and so must be set explicitly with setId.
| in | input stream |
| monomer | Monomer to be read from stream |
Definition at line 24 of file Monomer.cpp.
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| const Monomer & | monomer ) |
Stream inserter (<<) for a Monomer.
| out | output stream |
| monomer | Monomer to be written to stream |
Definition at line 34 of file Monomer.cpp.
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| Species::Ensemble & | policy ) |
istream extractor for a Species::Ensemble enumeration.
| in | input stream |
| policy | Species::Ensemble to be read |
Definition at line 77 of file Species.cpp.
References UTIL_THROW.
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| Species::Ensemble | policy ) |
ostream inserter for an Species::Ensemble enumeration.
Text representations of allowed values are "Open" and "Closed".
| out | output stream |
| policy | Species::Ensemble to be written |
Definition at line 95 of file Species.cpp.
| void Pscf::serialize | ( | Archive & | ar, |
| Species::Ensemble & | policy, | ||
| const unsigned int | version ) |
Serialize a Species::Ensemble.
| ar | archive object |
| policy | object to be serialized |
| version | archive version id |
Definition at line 198 of file Species.h.
References Util::serializeEnum().
|
inline |
Check if CUDA API function returns cudaSuccess (used by cudaErrorCheck macro).
| err | cudaError_t object returned from CUDA API function |
| file | filename where cudaErrorCheck was called |
| line | line number where cudaErrorCheck was called |
Definition at line 54 of file cudaErrorCheck.h.
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| IntVec< D, T > & | vector ) |
istream extractor for a IntVec<D, T>.
Input elements of a vector from stream, without line breaks.
| in | input stream |
| vector | IntVec<D, T> to be read from stream |
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| const IntVec< D, T > & | vector ) |
ostream inserter for a IntVec<D, T>.
Output a IntVec<D, T> to an ostream, without line breaks.
Output elements of a vector to stream, without line breaks.
| out | output stream |
| vector | IntVec<D, T> to be written to stream |
Definition at line 104 of file IntVec.h.
References Pscf::IntVec< D, T >::Width.
|
inline |
Equality of an Vec<D, T> and an IntVec<D, T>
|
inline |
Inequality of two IntVec<D, T> objects.
|
inline |
Inequality of a Vec<D, T> and an IntVec<D, T>
|
inline |
Less than comparison for two IntVec<D, T>s.
Elements with lower array indices are treated as more signficant.
|
inline |
Less than or equal to comparison for two IntVec<D, T>s.
Elements with lower array indices are more signficant digits.
|
inline |
Greater than comparison for two IntVec<D, T>s.
|
inline |
Greater than or equal to comparison for two IntVec<D, T>s.
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| RealVec< D, T > & | vector ) |
istream extractor for a RealVec<D, T>.
Input elements of a vector from stream, without line breaks.
| in | input stream |
| vector | RealVec<D, T> to be read from stream |
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| const RealVec< D, T > & | vector ) |
ostream inserter for a RealVec<D, T>.
Output a RealVec<D, T> to an ostream, without line breaks.
Output elements of a vector to stream, without line breaks.
| out | output stream |
| vector | RealVec<D, T> to be written to stream |
Definition at line 108 of file RealVec.h.
References Pscf::RealVec< D, T >::Precision, and Pscf::RealVec< D, T >::Width.
Return dot product of two vectors.
| v1 | first input vector |
| v2 | second input vector |
Definition at line 285 of file Vec.h.
References Util::setToZero().
|
inline |
Return the sum of two vectors.
| v1 | first input vector |
| v2 | second input vector |
Definition at line 304 of file Vec.h.
References Pscf::Vec< D, T >::add().
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| Mesh< D > & | mesh ) |
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| Mesh< D > const & | mesh ) |
| std::istream & Pscf::operator>> | ( | std::istream & | is, |
| fftw_complex & | z ) |
Stream extraction operator for fftw_complex.
| is | input stream |
| z | complex number |
| std::ostream & Pscf::operator<< | ( | std::ostream & | os, |
| fftw_complex const & | z ) |
Stream insertion operator for fftw_complex.
| os | output stream |
| z | complex number |