1#ifndef PRDC_CFIELD_IO_H
2#define PRDC_CFIELD_IO_H
11#include <pscf/math/IntVec.h>
15 template <
typename T>
class DArray;
44 template <
int D,
class AT>
66 template <
int D,
class AT>
88 template <
int D,
class AT,
typename CT,
typename RT>
110 template <
int D,
class AT,
typename CT,
typename RT>
117#include "cFieldIo.tpp"
An IntVec<D, T> is a D-component vector of elements of integer type T.
Dynamically allocatable contiguous array template.
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.
void readCFieldData(std::istream &in, AT &field, IntVec< D > const &dimensions)
Read data for a single complex field, with no header section.
void writeCFieldData(std::ostream &out, AT const &field, IntVec< D > const &dimensions)
Write data for a single complex field, with no header section.
void readCFieldsData(std::istream &in, DArray< AT > &fields, IntVec< D > const &dimensions)
Read data for an array of complex fields, with no header section.
Periodic fields and crystallography.
PSCF package top-level namespace.
Utility classes for scientific computation.