|
PSCF v1.5.0
|
PSCF package top-level namespace. More...
Namespaces | |
| namespace | Correlation |
| Intramolecular correlations in homogeneous systems. | |
| namespace | PolymerModel |
| Enumeration and functions to specify a model for polymer chains. | |
| namespace | R1 |
| SCFT with real 1D fields. | |
| namespace | Reduce |
| Functions that perform array reductions. | |
| namespace | Rp |
| Code for programs that simulate real-valued periodic fields. | |
| namespace | ThreadArray |
| Global functions and variables to control GPU thread and block counts. | |
| namespace | ThreadMesh |
| Multidimensional GPU thread execution configurations. | |
| namespace | VecOp |
| Elementwise vector operations. | |
Classes | |
| class | AmbdInteraction |
| Modified interaction to compute residual defn. More... | |
| class | AmIteratorTmpl |
| Template for Anderson mixing iterator algorithm. More... | |
| class | BackendArray |
| class | BackendArray< Data, CPT > |
| Pseudo "device" array for use with C++ backend. More... | |
| class | BackendArray< Data, CUT > |
| Dynamic array on the GPU device with aligned data. More... | |
| class | Basis |
| Symmetry-adapted Fourier basis for pseudo-spectral SCFT. More... | |
| class | BFieldComparison |
| Comparator for fields in symmetry-adapted basis format. More... | |
| class | BlockTmpl |
| Class template for a block solver in a block copolymer. More... | |
| struct | BWave |
| Wave struct designed for use within Basis construction. More... | |
| struct | BWaveMinComp |
| Comparator for BWave objects, based on BWave::indicesMin. More... | |
| struct | BWaveNormComp |
| Comparator for BWave objects, based on BWave::sqNorm. More... | |
| struct | BWaveStdComp |
| Comparator for BWave objects, based on BWave::indicesStd. More... | |
| class | CField |
| class | CField< D, CPT > |
| Field of complex double precision values on a mesh (CPP). More... | |
| class | CField< D, CUT > |
| Field of complex values on a regular mesh, allocated on a GPU device. More... | |
| class | CFieldComparison |
| class | CFieldComparison< D, CPT > |
| Comparator for CField (k-grid) arrays. More... | |
| class | CFieldComparison< D, CUT > |
| Comparator for CField (k-grid) arrays, defined in device memory. More... | |
| class | Composition |
| Descriptor for a mixture of polymer and solvent species. More... | |
| class | CPT |
| Backend identifier class for the C++ serial CPU backend. More... | |
| class | CUT |
| Backend identifier class for the GPU-enabled CUDA backend. More... | |
| class | DeviceMemory |
| Block of bare memory allocated on the GPU. More... | |
| class | Edge |
| Descriptor for one 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 | FFT |
| class | FFT< D, CPT > |
| Fourier transform wrapper. More... | |
| class | FFT< D, CUT > |
| Fourier transform wrapper for real or complex data. More... | |
| class | FFTBatched |
| Batched Fourier transform wrapper for real data. More... | |
| class | FftwDRArray |
| Dynamic reference counted array for use with FFTW library. More... | |
| class | FhClump |
| Sub-unit of a molecule in Flory-Huggins theory. More... | |
| class | FhInteraction |
| Flory-Huggins interaction model. More... | |
| class | FhMixture |
| A spatially homogeneous mixture. More... | |
| class | FhMolecule |
| Molecular species in a homogeneous Flory-Huggins mixture. 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 | FieldState |
| Record of a state of a periodic system (fields + unit cell). More... | |
| class | HostRecvArray |
| class | HostRecvArray< Data, CPT > |
| Array for pseudo device-to-host array transfer with C++ backend. More... | |
| class | HostRecvArray< Data, CUT > |
| Host array to receive host-to-device data transfers. More... | |
| class | HostSendArray |
| class | HostSendArray< Data, CPT > |
| Psuedo-"host" array used for host-to-device data transfer. More... | |
| class | HostSendArray< Data, CUT > |
| Template for dynamic array stored in host CPU memory. More... | |
| class | Interaction |
| Interaction model for complex Langevin FTS. 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 | 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 |
| Descriptor and MDE solver 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 | RField |
| class | RField< D, CPT > |
| Field of real double precision values on a regular mesh. More... | |
| class | RField< D, CUT > |
| Field of real values on a regular mesh, allocated on a GPU device. More... | |
| class | RFieldComparison |
| class | RFieldComparison< D, CPT > |
| Comparator for fields in real-space (r-grid) format. More... | |
| class | RFieldComparison< D, CUT > |
| Comparator for fields in real-space (r-grid) format. More... | |
| class | RFieldDft |
| class | RFieldDft< D, CPT > |
| Fourier transform of a real field on an FFT mesh (CPU version). More... | |
| class | RFieldDft< D, CUT > |
| Discrete Fourier Transform (DFT) of a real field, allocated on a GPU. More... | |
| class | RFieldDftComparison |
| class | RFieldDftComparison< D, CPT > |
| Comparator for RFieldDft (k-grid) arrays. More... | |
| class | RFieldDftComparison< D, CUT > |
| Comparator for RFieldDft (k-grid) arrays (CUDA). More... | |
| class | SolventSpecies |
| Descriptor for a solvent species. More... | |
| class | SpaceGroup |
| Crystallographic space group. More... | |
| class | SpaceSymmetry |
| A SpaceSymmetry represents a crystallographic space group symmetry. 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 | SymmetryGroup |
| Class template for a group of elements. More... | |
| class | TridiagonalSolver |
| Solver for Ax=b with tridiagonal matrix A. More... | |
| class | UnitCell |
| Base template for UnitCell<D> classes, D=1, 2 or 3. More... | |
| class | UnitCell< 1 > |
| 1D crystal unit cell. More... | |
| class | UnitCell< 2 > |
| 2D crystal unit cell. More... | |
| class | UnitCell< 3 > |
| 3D crystal unit cell. More... | |
| class | UnitCellBase |
| Base class template for a crystallographic unit cell. More... | |
| class | Vec |
| A Vec<D, T><D,T> is a D-component vector with elements of type T. More... | |
| class | VecRandom |
| class | VecRandom< CPT > |
| Random number generator for arrays of random numbers on CPU. More... | |
| class | VecRandom< CUT > |
| Random number generator on GPU. More... | |
| class | Vertex |
| A junction or chain end in a block polymer. More... | |
| class | VertexIterator |
| Vertex iterator for graph associated with a polymer. More... | |
| class | WaveList |
| class | WaveList< D, CPT > |
| Class to compute and store properties associated with wavevectors. More... | |
| class | WaveList< D, CUT > |
| Class to compute and store properties associated with wavevectors. More... | |
Typedefs | |
| using | cudaComplex = cufftDoubleComplex |
| Complex number type used in CPU code that uses FFTW. | |
| using | cudaReal = cufftDoubleReal |
| Real number type used in CPU code that uses FFTW. | |
Enumerations | |
| enum class | BackendId |
| Enum that identifies a computational "backend". More... | |
| enum class | Ensemble |
| Statistical ensemble for the number of molecules of one species. More... | |
Functions | |
| void | assignExp (fftw_complex &z, fftw_complex const &a) |
| Exponentation of a ffts_complex variable, z = exp(a). | |
| void | assignLog (fftw_complex &z, fftw_complex const &a) |
| Logarithm of an fftw_complex variable, z = log(a). | |
| 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. | |
| double | real (fftw_complex const &a) |
| Return the real part of an fftw_complex number. | |
| double | imag (fftw_complex const &a) |
| Return the imaginary part of an fftw_complex number. | |
| double | abs (fftw_complex const &a) |
| Return absolute magnitude of an fftw_complex number. | |
| double | absSq (fftw_complex const &a) |
| Return square of absolute magnitude of an fftw_complex number. | |
| void | conj (fftw_complex &z, fftw_complex const &a) |
| Complex conjugate of an fftw_complex, z = a^*. | |
| void | conj (fftw_complex &a) |
| In-place complex conjugation of an fftw_complex number, a = a^* . | |
| void | assign (fftw_complex &z, double const &a, double const &b) |
| Create an fftw_complex from real and imaginary parts, z = a + ib. | |
| void | assign (fftw_complex &z, double const &a) |
| Assign a real input to an fftw_complex variable. | |
| void | assign (fftw_complex &z, fftw_complex const &a) |
| Assign an fftw_complex input to an fftw_complex variable. | |
| void | assign (fftw_complex &z, std::complex< double > const &a) |
| Assign a std::complex input to an fftw_complex variable. | |
| void | assign (std::complex< double > &z, fftw_complex const &a) |
| Assign an fftw_complex input to a std::complex variable. | |
| void | add (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Addition of fftw_complex numbers, z = a + b. | |
| void | add (fftw_complex &z, fftw_complex const &a, double const &b) |
| Addition of a complex and real number, z = a + b. | |
| void | addEq (fftw_complex &a, fftw_complex const &b) |
| In-place addition of fftw_complex numbers, a += b. | |
| void | addEq (fftw_complex &a, double const &b) |
| In-place addition of a complex and real number, a += b. | |
| void | sub (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Subtraction of fftw_complex numbers, z = a - b. | |
| void | sub (fftw_complex &z, fftw_complex const &a, double const &b) |
| Subtraction of a real number from an fftw_complex number, z = a - b. | |
| void | subEq (fftw_complex &a, fftw_complex const &b) |
| In-place subtraction of fftw_complex numbers, a -= b. | |
| void | subEq (fftw_complex &a, double const &b) |
| In-place subtraction of real from an fftw_complex number, a -= b. | |
| double | absSqDiff (fftw_complex const &a, fftw_complex const &b) |
| Return square of the absolute magnitude of a complex difference. | |
| void | mul (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Multiplication of fftw_complex numbers, z = a * b. | |
| void | mul (fftw_complex &z, fftw_complex const &a, double const &b) |
| Multiplication of an fftw_complex and real number, z = a * b. | |
| void | mulEq (fftw_complex &a, fftw_complex const &b) |
| In-place multiplication of two complex number, a *= b. | |
| void | mulEq (fftw_complex &a, double const &b) |
| In-place multiplication of a complex and real number, a *= b. | |
| void | square (fftw_complex &z, fftw_complex const &a) |
| Complex square of an fftw_complex number, z = a * a. | |
| void | div (fftw_complex &z, fftw_complex const &a, fftw_complex const &b) |
| Division of fftw_complex numbers, z = a / b . | |
| void | div (fftw_complex &z, fftw_complex const &a, double const &b) |
| Division of an fftw_complex number by a real number, z = a / b . | |
| void | divEq (fftw_complex &a, fftw_complex const &b) |
| In-place division of fftw_complex numbers, a /= b. | |
| void | divEq (fftw_complex &a, double const &b) |
| In-place division of an fftw_complex number by a real number, a /= b. | |
| void | inverse (fftw_complex &z, fftw_complex const &a) |
| Inversion of an fftw_complex number, z = 1 / a . | |
| template<> | |
| void | linkVecRandom (VecRandom< CPT > &vr, Random &sr) |
| Link vector and scalar random number generators, if needed. | |
| template<> | |
| void | seedVecRandom (VecRandom< CPT > &vr, long seed) |
| Set the vector random number generator seed, if needed. | |
| cudaReal | real (cudaComplex const &a) |
| Return the real part of a complex number. | |
| cudaReal | imag (cudaComplex const &a) |
| Return the imaginary part of a complex number. | |
| cudaReal | abs (cudaComplex const &a) |
| Return absolute magnitude of a complex number. | |
| cudaReal | absSq (cudaComplex const &a) |
| Return square of absolute magnitude of a complex number. | |
| void | conj (cudaComplex &z, cudaComplex const &a) |
| Compute complex conjugate, z = a^*. | |
| void | conj (cudaComplex &a) |
| In-place complex conjugation of a complex number, a = a^* . | |
| void | assign (cudaComplex &z, cudaReal const &a, cudaReal const &b) |
| Create a complex number from real and imaginary parts, z = a + ib. | |
| void | assign (cudaComplex &z, cudaReal const &a) |
| Assign a real input to a complex variable. | |
| void | assign (cudaComplex &z, cudaComplex const &a) |
| Assign a complex input to a complex variable. | |
| void | assign (cudaComplex &z, std::complex< cudaReal > const &a) |
| Assign a std::complex input to a complex variable. | |
| void | assign (std::complex< cudaReal > &z, cudaComplex const &a) |
| Assign a complex input to a std::complex variable. | |
| void | add (cudaComplex &z, cudaComplex const &a, cudaComplex const &b) |
| Addition of two complex numbers, z = a + b. | |
| void | add (cudaComplex &z, cudaComplex const &a, cudaReal const &b) |
| Addition of a complex and real number, z = a + b. | |
| void | addEq (cudaComplex &a, cudaComplex const &b) |
| In place addition of complex numbers, a += b. | |
| void | addEq (cudaComplex &a, cudaReal const &b) |
| In place addition of a complex and real number, a += b. | |
| void | sub (cudaComplex &z, cudaComplex const &a, cudaComplex const &b) |
| Subtraction of two complex numbers, z = a - b. | |
| void | sub (cudaComplex &z, cudaComplex const &a, cudaReal const &b) |
| Subtraction of a real number from a complex number, z = a - b. | |
| void | subEq (cudaComplex &a, cudaComplex const &b) |
| In place subtraction of two complex numbers, a -= b. | |
| void | subEq (cudaComplex &a, cudaReal const &b) |
| In place subtraction of real number from a complex number, a -= b. | |
| cudaReal | absSqDiff (cudaComplex const &a, cudaComplex const &b) |
| Return square of the absolute magnitude of a complex difference. | |
| void | mul (cudaComplex &z, cudaComplex const &a, cudaComplex const &b) |
| Multiplication of two complex numbers, z = a * b. | |
| void | mul (cudaComplex &z, cudaComplex const &a, cudaReal const &b) |
| Multiplication of complex and real numbers, z = a * b. | |
| void | mulEq (cudaComplex &a, cudaComplex const &b) |
| In place multiplication of two complex number, a *= b. | |
| void | mulEq (cudaComplex &a, cudaReal const &b) |
| In place multiplication of a complex and real number, a *= b. | |
| void | square (cudaComplex &z, cudaComplex const &a) |
| Compute complex square of a complex number, z = a * a. | |
| void | div (cudaComplex &z, cudaComplex const &a, cudaComplex const &b) |
| Division of two complex numbers, z = a / b . | |
| void | div (cudaComplex &z, cudaComplex const &a, cudaReal const &b) |
| Division of a complex number by a real number, z = a / b . | |
| void | divEq (cudaComplex &a, cudaComplex const &b) |
| In place division of two complex number, a /= b. | |
| void | divEq (cudaComplex &a, cudaReal const &b) |
| In place division of a complex number by a real number, a /= b. | |
| void | inverse (cudaComplex &z, cudaComplex const &a) |
| Inversion of a complex number, z = 1 / a . | |
| void | assignExp (cudaComplex &z, cudaComplex const &a) |
| Exponentation of a ffts_complex variable, z = exp(a). | |
| void | assignLog (cudaComplex &z, cudaComplex const &a) |
| Logarithm of a cudaComplex variable, z = log(a). | |
| void | gpuAssert (cudaError_t err, const char *file, int line) |
| Check if CUDA API function returns cudaSuccess (used by cudaErrorCheck macro). | |
| template<> | |
| void | linkVecRandom (VecRandom< CUT > &vr, Random &sr) |
| Link vector and scalar random number generators, if needed. | |
| template<> | |
| void | seedVecRandom (VecRandom< CUT > &vr, long seed) |
| Set the vector random number generator seed, if needed. | |
| 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, Ensemble &policy) |
| istream extractor for an Ensemble enumeration. | |
| std::ostream & | operator<< (std::ostream &out, Ensemble policy) |
| ostream inserter for an Ensemble enumeration. | |
| template<class Archive> | |
| void | serialize (Archive &ar, Ensemble &policy, const unsigned int version) |
| Serialize an Ensemble. | |
| 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::string | makeGroupFileName (int D, std::string groupName) |
| Generates the file name from a group name. | |
| template<int D> | |
| bool | hasVariableAngle (typename UnitCell< D >::LatticeSystem lattice) |
| Return true if lattice type has variable angle parameters. | |
| template<int D> | |
| int | convertFullParamIdToReduced (const int fullId, const typename UnitCell< D >::LatticeSystem lattice) |
| Convert full lattice parameter index to a reduced index. | |
| template<int D> | |
| int | convertReducedParamIdToFull (const int reducedId, const typename UnitCell< D >::LatticeSystem lattice) |
| Convert reduced lattice parameter index to a full index. | |
| template<> | |
| void | replicateUnitCell (IntVec< 1 > const &replicas, UnitCell< 1 > const &cellIn, UnitCell< 1 > &cellOut) |
| Create a replicated UnitCell<1>. | |
| template<> | |
| void | replicateUnitCell (IntVec< 2 > const &replicas, UnitCell< 2 > const &cellIn, UnitCell< 2 > &cellOut) |
| Create a replicated UnitCell<2>. | |
| template<> | |
| void | replicateUnitCell (IntVec< 3 > const &replicas, UnitCell< 3 > const &cellIn, UnitCell< 3 > &cellOut) |
| Create a replicated UnitCell<3>. | |
| template<int D> | |
| void | replicateUnitCell (IntVec< D > const &replicas, UnitCell< D > const &cellIn, UnitCell< D > &cellOut) |
| Create a replicated UnitCell<D> (base template). | |
| template<> | |
| void | replicateUnitCell (IntVec< 1 > const &replicas, UnitCell< 1 > const &cellIn, UnitCell< 1 > &cellOut) |
| Create a replicated UnitCell<1>. | |
| template<> | |
| void | replicateUnitCell (IntVec< 2 > const &replicas, UnitCell< 2 > const &cellIn, UnitCell< 2 > &cellOut) |
| Create a replicated UnitCell<2>. | |
| template<> | |
| void | replicateUnitCell (IntVec< 3 > const &replicas, UnitCell< 3 > const &cellIn, UnitCell< 3 > &cellOut) |
| Create a replicated UnitCell<3>. | |
| template<int D> | |
| IntVec< D > | shiftToMinimum (IntVec< D > const &v, IntVec< D > const &d, UnitCell< D > const &cell) |
| Returns minimum magnitude image of DFT wavevector. | |
| template<int D> | |
| void | sortWaves (UnitCell< D > const &cell, IntVec< D > const &meshDimensions, std::vector< Sort::Item< double > > &items, GArray< Sort::Bunch > &bunches, double epsilon, bool isRealField) |
| Sorted waves and identify bunches of equal magnitude. | |
| template<int D> | |
| std::ostream & | operator<< (std::ostream &out, SpaceGroup< D > const &g) |
| Output stream inserter operator for a SpaceGroup<D>. | |
| template<int D> | |
| std::istream & | operator>> (std::istream &in, SpaceGroup< D > &g) |
| Input stream extractor operator for a SpaceGroup<D>. | |
| template<int D> | |
| void | readGroup (std::string groupName, SpaceGroup< D > &group) |
| Open and read a group file. | |
| template<int D> | |
| void | writeGroup (std::string filename, SpaceGroup< D > const &group) |
| Open and write a group file. | |
| template<int D> | |
| bool | operator== (const SpaceSymmetry< D > &A, const SpaceSymmetry< D > &B) |
| Are two SpaceSymmetry objects equivalent? | |
| template<int D> | |
| bool | operator!= (const SpaceSymmetry< D > &A, const SpaceSymmetry< D > &B) |
| Are two SpaceSymmetry objects not equivalent? | |
| template<int D> | |
| SpaceSymmetry< D > | operator* (const SpaceSymmetry< D > &A, const SpaceSymmetry< D > &B) |
| Return the product A*B of two symmetry objects. | |
| template<int D> | |
| IntVec< D > | operator* (const SpaceSymmetry< D > &S, const IntVec< D > &V) |
| Return the IntVec<D> product S*V of a rotation matrix and an IntVec<D>. | |
| template<int D> | |
| IntVec< D > | operator* (const IntVec< D > &V, const SpaceSymmetry< D > &S) |
| Return the IntVec<D> product V*S of an IntVec<D> and a rotation matrix. | |
| template<int D> | |
| std::ostream & | operator<< (std::ostream &out, const SpaceSymmetry< D > &A) |
| Output stream inserter for a SpaceSymmetry<D>. | |
| template<int D> | |
| std::istream & | operator>> (std::istream &in, SpaceSymmetry< D > &A) |
| Input stream extractor for a SpaceSymmetry<D>. | |
| template<int D> | |
| std::istream & | operator>> (std::istream &in, UnitCell< D > &cell) |
| istream input extractor for a UnitCell<D>. | |
| template<int D> | |
| std::ostream & | operator<< (std::ostream &out, UnitCell< D > const &cell) |
| ostream output inserter for a UnitCell<D>. | |
| template<class Archive, int D> | |
| void | serialize (Archive &ar, UnitCell< D > &cell, const unsigned int version) |
| Serialize to/from an archive. | |
| std::istream & | operator>> (std::istream &in, UnitCell< 1 >::LatticeSystem &lattice) |
| istream extractor for a 1D UnitCell<1>::LatticeSystem. | |
| std::ostream & | operator<< (std::ostream &out, UnitCell< 1 >::LatticeSystem lattice) |
| ostream inserter for a 1D UnitCell<1>::LatticeSystem. | |
| template<class Archive> | |
| void | serialize (Archive &ar, UnitCell< 1 >::LatticeSystem &lattice, const unsigned int version) |
| Serialize a UnitCell<1>::LatticeSystem enumeration value. | |
| std::istream & | operator>> (std::istream &in, UnitCell< 2 >::LatticeSystem &lattice) |
| istream extractor for a 2D UnitCell<2>::LatticeSystem. | |
| std::ostream & | operator<< (std::ostream &out, UnitCell< 2 >::LatticeSystem lattice) |
| ostream inserter for a 2D UnitCell<2>::LatticeSystem. | |
| template<class Archive> | |
| void | serialize (Archive &ar, UnitCell< 2 >::LatticeSystem &lattice, const unsigned int version) |
| Serialize a UnitCell<2>::LatticeSystem enumeration value. | |
| std::istream & | operator>> (std::istream &in, UnitCell< 3 >::LatticeSystem &lattice) |
| istream extractor for a 3D UnitCell<3>::LatticeSystem. | |
| std::ostream & | operator<< (std::ostream &out, UnitCell< 3 >::LatticeSystem lattice) |
| ostream inserter for an 3D UnitCell<3>::LatticeSystem. | |
| template<class Archive> | |
| void | serialize (Archive &ar, UnitCell< 3 >::LatticeSystem &lattice, const unsigned int version) |
| Serialize a UnitCell<3>::LatticeSystem enumeration value. | |
| template<int D> | |
| void | readUnitCellHeader (std::istream &in, UnitCell< D > &cell) |
| Read UnitCell<D> from a field file header (fortran PSCF format). | |
| template<int D> | |
| void | writeUnitCellHeader (std::ostream &out, UnitCell< D > const &cell) |
| Write UnitCell<D> to a field file header (fortran PSCF format). | |
| template<int D, class AT> | |
| void | readCFieldsData (std::istream &in, DArray< AT > &fields, IntVec< D > const &dimensions) |
| Read data for an array of complex fields, with no header section. | |
| template<int D, class AT> | |
| void | readCFieldData (std::istream &in, AT &field, IntVec< D > const &dimensions) |
| Read data for a single complex field, with no header section. | |
| template<int D, class AT, typename CT, typename RT> | |
| void | writeCFieldsData (std::ostream &out, DArray< AT > const &fields, IntVec< D > const &dimensions) |
| Write data for an array of complex fields, with no header section. | |
| template<int D, class AT, typename CT, typename RT> | |
| void | writeCFieldData (std::ostream &out, AT const &field, IntVec< D > const &dimensions) |
| Write data for a single complex field, with no header section. | |
| template<int D, class FT> | |
| void | allocateFields (DArray< FT > &fields, int n, IntVec< D > const &dimension) |
| Allocate a DArray of fields. | |
| template<int D, class FT> | |
| void | checkAllocateField (FT &field, IntVec< D > const &dimensions) |
| Check allocation of a single field, allocate if necessary. | |
| template<int D, class FT> | |
| void | checkAllocateFields (DArray< FT > &fields, int nMonomer, IntVec< D > const &dimensions) |
| Check allocation of an array of fields, allocate if necessary. | |
| template<int D, class FT> | |
| void | inspectFields (DArray< FT > const &fields, int &nMonomer, IntVec< D > &dimensions) |
| Inspect dimensions of a DArray of fields, each of type FT. | |
| template<class AT> | |
| void | allocateArrays (DArray< AT > &arrays, int n, int capacity) |
| Allocate an array of arrays. | |
| template<int D, class AT> | |
| void | checkAllocateArrays (DArray< AT > &arrays, int nMonomer, int capacity) |
| Check allocation of a DArray of 1D arrays, allocate if necessary. | |
| template<class AT> | |
| void | inspectArrays (DArray< AT > const &arrays, int &nMonomer, int &capacity) |
| Inspect dimensions of a DArray of 1D arrays, each of type AT. | |
| template<class OAT, class IAT> | |
| void | copyArrays (DArray< OAT > &out, DArray< IAT > const &in) |
| Copy a DArray of 1D arrays. | |
| template<class HAT, class DAT> | |
| void | associateArrays (DArray< HAT > &host, DArray< DAT > &device) |
| Associate host arrays with backend arrays. | |
| template<class HAT> | |
| void | dissociateArrays (DArray< HAT > &host) |
| Dissociate an array of host arrays. | |
| template<int D> | |
| void | readFieldHeader (std::istream &in, int &ver1, int &ver2, UnitCell< D > &cell, std::string &groupName, int &nMonomer) |
| Read common part of field header (fortran PSCF format). | |
| template<int D> | |
| void | writeFieldHeader (std::ostream &out, int ver1, int ver2, UnitCell< D > const &cell, std::string const &groupName, int nMonomer) |
| Write common part of field header (fortran PSCF format). | |
| template<int D> | |
| void | readMeshDimensions (std::istream &in, IntVec< D > const &meshDimensions) |
| Read mesh dimensions from a field file header. | |
| template<int D> | |
| void | writeMeshDimensions (std::ostream &out, IntVec< D > const &meshDimensions) |
| Write mesh dimensions to a field file header. | |
| int | readNBasis (std::istream &in) |
| Read the number of basis functions from a basis field file header. | |
| void | writeNBasis (std::ostream &out, int nBasis) |
| Write the number of basis functions to a basis field file header. | |
| template<int D, class AT> | |
| void | readRGridData (std::istream &in, DArray< AT > &fields, int nMonomer, IntVec< D > const &dimensions) |
| Read data for array of r-grid fields, with no header section. | |
| template<int D, class AT> | |
| void | readRGridData (std::istream &in, AT &field, IntVec< D > const &dimensions) |
| Read data for a single r-grid field, with no header section. | |
| template<int D, class AT> | |
| void | writeRGridData (std::ostream &out, DArray< AT > const &fields, int nMonomer, IntVec< D > const &dimensions) |
| Write data for array of r-grid fields, with no header section. | |
| template<int D, class AT> | |
| void | writeRGridData (std::ostream &out, AT const &field, IntVec< D > const &dimensions) |
| Write data for a single r-grid field, with no header section. | |
| template<int D, class AT> | |
| void | readKGridData (std::istream &in, DArray< AT > &fields, int nMonomer, IntVec< D > const &dftDimensions) |
| Read data for array of k-grid fields, with no header section. | |
| template<int D, class AT> | |
| void | readKGridData (std::istream &in, AT &field, IntVec< D > const &dftDimensions) |
| Read data for a single k-grid field, with no header section. | |
| template<int D, class AT> | |
| void | writeKGridData (std::ostream &out, DArray< AT > const &fields, int nMonomer, IntVec< D > const &dftDimensions) |
| Write data for array of k-grid fields, with no header section. | |
| template<int D, class AT> | |
| void | writeKGridData (std::ostream &in, AT const &field, IntVec< D > const &dftDimensions) |
| Write data for a single k-grid field, with no header section. | |
| template<int D> | |
| void | readBasisData (std::istream &in, DArray< DArray< double > > &fields, UnitCell< D > const &unitCell, Mesh< D > const &mesh, Basis< D > const &basis, int nStarIn) |
| Read an array of fields in basis format, without a header. | |
| template<int D> | |
| void | readBasisData (std::istream &in, DArray< double > &field, UnitCell< D > const &unitCell, Mesh< D > const &mesh, Basis< D > const &basis, int nStarIn) |
| Read data section of a single field in basis format. | |
| template<int D> | |
| void | writeBasisData (std::ostream &out, DArray< DArray< double > > const &fields, Basis< D > const &basis) |
| Write data section of an array of fields in basis format. | |
| template<int D> | |
| void | writeBasisData (std::ostream &out, DArray< double > const &field, Basis< D > const &basis) |
| Write data section of a single field in basis format. | |
| template<int D, class AT> | |
| void | convertBasisToKGrid (DArray< double > const &components, AT &dft, Basis< D > const &basis, IntVec< D > const &dftDimensions) |
| Convert a real field from symmetrized basis to Fourier grid. | |
| template<int D, class AT> | |
| void | convertKGridToBasis (AT const &in, DArray< double > &out, Basis< D > const &basis, IntVec< D > const &dftDimensions, bool checkSymmetry=true, double epsilon=1.0e-8) |
| Convert a real field from Fourier grid to symmetrized basis. | |
| template<int D, class AT> | |
| bool | hasSymmetry (AT const &in, Basis< D > const &basis, IntVec< D > const &dftDimensions, double epsilon=1.0e-8, bool verbose=true) |
| Check if a k-grid field has the declared space group symmetry. | |
| template<int D, class AT> | |
| void | replicateUnitCell (std::ostream &out, DArray< AT > const &fields, IntVec< D > const &meshDimensions, UnitCell< D > const &unitCell, IntVec< D > const &replicas) |
| Write r-grid fields in a replicated unit cell to std::ostream. | |
| template<int D, class AT> | |
| void | expandRGridDimension (std::ostream &out, DArray< AT > const &fields, IntVec< D > const &meshDimensions, UnitCell< D > const &unitCell, int d, DArray< int > newGridDimensions) |
| Expand the dimensionality of space from D to d. | |
| std::istream & | operator>> (std::istream &in, FhClump &block) |
| istream extractor for a FhClump. | |
| std::ostream & | operator<< (std::ostream &out, const FhClump &block) |
| ostream inserter for a FhClump. | |
| void | assign (double &z, double const &a) |
| Assign a double value. | |
| void | assign (float &z, float const &a) |
| Assign a real float value. | |
| template<typename RT> | |
| void | assign (std::complex< RT > &z, std::complex< RT > const &a) |
| Assign one std::complex<RT> variable to another. | |
| template<typename RT> | |
| void | assign (std::complex< RT > &z, RT const &a, RT const &b) |
| Create std::complex<RT> from real and imaginary parts, z = a + ib. | |
| template<typename RT> | |
| void | assign (std::complex< RT > &z, RT const &a) |
| Assign a real input to a std::complex variable. | |
| void | add (double &z, double const &a, double const &b) |
| Addition of two double precision numbers, z = a + b. | |
| void | add (float &z, float const &a, float const &b) |
| Addition of two real float numbers, z = a + b. | |
| template<typename RT> | |
| void | add (std::complex< RT > &z, std::complex< RT > const &a, std::complex< RT > const &b) |
| Addition of two std::complex variables, z = a + b. | |
| template<typename RT> | |
| void | add (std::complex< RT > &z, std::complex< RT > const &a, RT const &b) |
| Addition of a std::complex and real number, z = a + b. | |
| void | addEq (double &a, double const &b) |
| In place addition a += b (double). | |
| void | addEq (float &a, float const &b) |
| In place addition a += b (double). | |
| template<typename RT> | |
| void | addEq (std::complex< RT > &a, std::complex< RT > const &b) |
| In place addition a += b (std::complex<RT>). | |
| template<typename RT> | |
| void | addEq (std::complex< RT > &a, RT const &b) |
| In place addition of std::complex and real numbers, a += b. | |
| void | sub (double &z, double const &a, double const &b) |
| Subtraction of double precision numbers, z = a - b. | |
| void | sub (float &z, float const &a, float const &b) |
| Subtraction z = a - b (real float). | |
| template<typename RT> | |
| void | sub (std::complex< RT > &z, std::complex< RT > const &a, std::complex< RT > const &b) |
| Subtraction z = a - b (std::complex<RT>). | |
| template<typename RT> | |
| void | sub (std::complex< RT > &z, std::complex< RT > const &a, RT const &b) |
| Subtraction of real from complex, z = a - b. | |
| void | subEq (double &a, double const &b) |
| In place subtraction a -= b (double). | |
| void | subEq (float &a, float const &b) |
| In place subtraction, a -= b (float). | |
| template<typename RT> | |
| void | subEq (std::complex< RT > &a, std::complex< RT > const &b) |
| In place subtraction a -= b (std::complex<RT>). | |
| template<typename RT> | |
| void | subEq (std::complex< RT > &a, RT const &b) |
| In place subtraction of real from std::complex, a -= b. | |
| void | mul (double &z, double const &a, double const &b) |
| Multiplication of double real numbers, z = a * b. | |
| void | mul (float &z, float const &a, float const &b) |
| Multiplication z = a * b (float). | |
| template<typename RT> | |
| void | mul (std::complex< RT > &z, std::complex< RT > const &a, std::complex< RT > const &b) |
| Multiplication z = a * b (std::complex). | |
| template<typename RT> | |
| void | mul (std::complex< RT > &z, std::complex< RT > const &a, RT const &b) |
| Multiplication of std::complex and real, z = a * b. | |
| void | mulEq (double &a, double const &b) |
| In place multiplication a *= b (double). | |
| void | mulEq (float &a, float const &b) |
| In place multiplication a *= b (float). | |
| template<typename RT> | |
| void | square (std::complex< RT > &z, std::complex< RT > const &a) |
| Compute complex square of a std::complex, z = a * a. | |
| void | div (double &z, double const &a, double const &b) |
| Division z = a / b (double). | |
| void | div (float &z, float const &a, float const &b) |
| Division z = a / b (float). | |
| template<typename RT> | |
| void | div (std::complex< RT > &z, std::complex< RT > const &a, std::complex< RT > const &b) |
| Division z = a / b (std::complex). | |
| template<typename RT> | |
| void | div (std::complex< RT > &z, std::complex< RT > const &a, RT const &b) |
| Division of a std::complex number by real, z = a / b . | |
| void | divEq (double &a, double const &b) |
| In place division a /= b (double). | |
| void | divEq (float &a, float const &b) |
| In place division a /= b (float). | |
| template<typename RT> | |
| void | divEq (std::complex< RT > &a, std::complex< RT > const &b) |
| In place division a /= b (std::complex). | |
| template<typename RT> | |
| void | divEq (std::complex< RT > &a, RT const &b) |
| In place division of std::complex number by real, a /= b. | |
| void | inverse (double &z, double const &a) |
| Inverse, z = 1/a (double). | |
| void | inverse (float &z, float const &a) |
| Inverse, z = 1 / a (float). | |
| void | assignExp (double &z, double const &a) |
| Exponentiation, z = exp(a) (double). | |
| void | assignExp (float &z, float const &a) |
| Exponent, z = exp(a) (float). | |
| void | assignLog (double &z, double const &a) |
| Logarithm, z = exp(a) (double). | |
| void | assignLog (float &z, float const &a) |
| Logarithm, z = exp(a) (float). | |
| 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. | |
PSCF package top-level namespace.
| using Pscf::cudaComplex = cufftDoubleComplex |
Complex number type used in CPU code that uses FFTW.
Definition at line 22 of file cudaTypes.h.
| using Pscf::cudaReal = cufftDoubleReal |
Real number type used in CPU code that uses FFTW.
Definition at line 35 of file cudaTypes.h.
|
strong |
Enum that identifies a computational "backend".
This enum is used in template code that can use any of several different computational "backends" to perform basic mathematical operations that some backends can perform in parallel.
Enum values:
Definition at line 25 of file BackendId.h.
Link vector and scalar random number generators, if needed.
This specialization for the C++ backend (T=CPT) associates the two generators. In this specialization, the vector RNG provides a facade for the scalar random generator. The specialization of this function for a CUDA backend (T=CUT) does nothing, since in this case the two generators are independent.
| vr | vector RNG |
| sr | scalar RNG |
Set the vector random number generator seed, if needed.
This specialization for a C++ backend (T=CPT) code does nothing, because the vector RNG is simply a facade for the scalar RNG. The specialization for a CUDA backend (T=CUT) instead actually sets a seed for the independent vector RNG.
| vr | vector RNG to be initialized |
| seed | random seed value |
|
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.
References gpuAssert().
Referenced by gpuAssert().
Link vector and scalar random number generators, if needed.
This specialiation for a CUDA backend (T=CUT) does nothing, because the scalar and vector RNGs are independent.
| vr | vector RNG |
| sr | scalar RNG |
Set the vector random number generator seed, if needed.
This specialiation for a CUDA backend (T=CUT) sets the seed for the vector RNG. The specialiation for a C++ backend (T=CPT) does nothing, because in this case the vector RNG is simply a facade for the scalar RNG, rather than an independent generator.
| vr | vector RNG to be initialized |
| seed | random seed value |
| 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, |
| Ensemble & | policy ) |
istream extractor for an Ensemble enumeration.
| in | input stream |
| policy | Ensemble to be read |
Definition at line 17 of file Ensemble.cpp.
References UTIL_THROW.
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| Ensemble | policy ) |
ostream inserter for an Ensemble enumeration.
Text representations of allowed values are "Open" and "Closed".
| out | output stream |
| policy | Ensemble to be written |
Definition at line 35 of file Ensemble.cpp.
References Util::operator<<(), and UTIL_THROW.
| void Pscf::serialize | ( | Archive & | ar, |
| Ensemble & | policy, | ||
| const unsigned int | version ) |
Serialize an Ensemble.
| ar | archive object |
| policy | object to be serialized |
| version | archive version id |
Definition at line 57 of file Ensemble.h.
References Util::serializeEnum().
| 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.
| bool Pscf::hasVariableAngle | ( | typename UnitCell< D >::LatticeSystem | lattice | ) |
Return true if lattice type has variable angle parameters.
This base template is not defined, but explicit specializations are defined for D=1, 2, and 3.
| lattice | lattice system enumeration value |
References hasVariableAngle().
Referenced by Pscf::WaveList< D, CPT >::clearUnitCellData(), Pscf::WaveList< D, CUT >::clearUnitCellData(), and hasVariableAngle().
|
inline |
Serialize a UnitCell<1>::LatticeSystem enumeration value.
| ar | archive |
| lattice | enumeration data to be serialized |
| version | version id |
Definition at line 234 of file UnitCell.h.
References Util::serializeEnum().
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| UnitCell< 2 >::LatticeSystem | lattice ) |
ostream inserter for a 2D UnitCell<2>::LatticeSystem.
| out | output stream |
| lattice | UnitCell<2>::LatticeSystem to be written |
Definition at line 250 of file UnitCell2.cpp.
References UTIL_THROW.
|
inline |
Serialize a UnitCell<2>::LatticeSystem enumeration value.
| ar | archive |
| lattice | enumeration data to be serialized |
| version | version id |
Definition at line 376 of file UnitCell.h.
References Util::serializeEnum().
|
inline |
Serialize a UnitCell<3>::LatticeSystem enumeration value.
| ar | archive |
| lattice | enumeration data to be serialized |
| version | version id |
Definition at line 541 of file UnitCell.h.
References Util::serializeEnum().
| void Pscf::allocateFields | ( | DArray< FT > & | fields, |
| int | n, | ||
| IntVec< D > const & | dimension ) |
Allocate a DArray of fields.
| fields | DArray of fields of type FT |
| n | number of inner arrays |
| dimension | mesh dimensions |
Definition at line 23 of file fieldCheck.tpp.
References Util::DArray< Data >::allocate(), allocateFields(), Util::Array< Data >::isAllocated(), and UTIL_CHECK.
Referenced by allocateFields().
| void Pscf::allocateArrays | ( | DArray< AT > & | arrays, |
| int | n, | ||
| int | capacity ) |
Allocate an array of arrays.
| arrays | DArray of arrays |
| n | number of inner arrays |
| capacity | capacity of each inner array |
Definition at line 94 of file fieldCheck.tpp.
References Util::DArray< Data >::allocate(), allocateArrays(), Util::Array< Data >::isAllocated(), and UTIL_CHECK.
Referenced by allocateArrays().
| std::istream & Pscf::operator>> | ( | std::istream & | in, |
| FhClump & | block ) |
istream extractor for a FhClump.
| in | input stream |
| block | FhClump to be read from stream |
Definition at line 35 of file FhClump.cpp.
| std::ostream & Pscf::operator<< | ( | std::ostream & | out, |
| const FhClump & | block ) |
ostream inserter for a FhClump.
| out | output stream |
| block | FhClump to be written to stream |
Definition at line 45 of file FhClump.cpp.
| 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 dot(), and Util::setToZero().
Referenced by dot().
|
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 ) |