1 #ifndef MADNESS_APPS_MOLDFT_FCWF_H_INCLUDED
2 #define MADNESS_APPS_MOLDFT_FCWF_H_INCLUDED
13 std::vector<complex_function_3d>
m_psi;
31 explicit Fcwf(std::vector<complex_function_3d>& phi);
35 bool getinitialize()
const ;
39 unsigned int size()
const ;
51 void scale(std::complex<double>
a);
97 std::complex<double>
inner(std::vector<Fcwf>&
a, std::vector<Fcwf>&
b);
99 std::vector<Fcwf>
operator*(
const std::vector<Fcwf>& psis, std::complex<double>
a);
101 std::vector<Fcwf>
operator*(std::complex<double>
a,
const std::vector<Fcwf>& psis);
103 void operator+=(std::vector<Fcwf>& phi,
const std::vector<Fcwf>&
psi);
105 std::vector<Fcwf>
operator-(
const std::vector<Fcwf>& phi,
const std::vector<Fcwf>&
psi);
120 std::vector<Fcwf> operator()();
125 void set_size(
int size);
unsigned int m_size
Definition: fcwf.h:114
World & world
Definition: fcwf.h:113
bool m_initialized
Definition: fcwf.h:14
std::vector< complex_function_3d > m_psi
Definition: fcwf.h:13
Implements derivatives operators with variety of boundary conditions on simulation domain.
Definition: derivative.h:266
A multiresolution adaptive numerical function.
Definition: mra.h:122
A tensor is a multidimension array.
Definition: tensor.h:317
A parallel world class.
Definition: world.h:132
real_function_3d squaremod(Fcwf &psi)
Definition: fcwf.cc:295
real_function_3d squaremod_large(Fcwf &psi)
Definition: fcwf.cc:311
real_function_3d squaremod_small(Fcwf &psi)
Definition: fcwf.cc:303
complex_function_3d inner_func(World &world, Fcwf &psi, Fcwf &phi)
Definition: fcwf.cc:318
double psi(const Vector< double, 3 > &r)
Definition: hatom_energy.cc:78
Tensor< double > op(const Tensor< double > &x)
Definition: kain.cc:508
Main include file for MADNESS and defines Function interface.
File holds all helper structures necessary for the CC_Operator and CC2 class.
Definition: DFParameters.h:10
std::vector< CCPairFunction< T, NDIM > > operator+(const std::vector< CCPairFunction< T, NDIM >> c1, const std::vector< CCPairFunction< T, NDIM > > &c2)
Definition: ccpairfunction.h:1047
response_space scale(response_space a, double b)
std::vector< CCPairFunction< T, NDIM > > operator-(const std::vector< CCPairFunction< T, NDIM >> c1, const std::vector< CCPairFunction< T, NDIM > > &c2)
Definition: ccpairfunction.h:1055
response_space apply(World &world, std::vector< std::vector< std::shared_ptr< real_convolution_3d >>> &op, response_space &f)
Definition: basic_operators.cc:39
void truncate(World &world, response_space &v, double tol, bool fence)
Definition: basic_operators.cc:30
Function< T, NDIM > copy(const Function< T, NDIM > &f, const std::shared_ptr< WorldDCPmapInterface< Key< NDIM > > > &pmap, bool fence=true)
Create a new copy of the function with different distribution and optional fence.
Definition: mra.h:2002
void compress(World &world, const std::vector< Function< T, NDIM > > &v, bool fence=true)
Compress a vector of functions.
Definition: vmra.h:133
double norm2(World &world, const std::vector< Function< T, NDIM > > &v)
Computes the 2-norm of a vector of functions.
Definition: vmra.h:851
std::vector< CCPairFunction< T, NDIM > > & operator+=(std::vector< CCPairFunction< T, NDIM > > &lhs, const CCPairFunction< T, NDIM > &rhs)
Definition: ccpairfunction.h:1063
std::vector< CCPairFunction< T, NDIM > > & operator-=(std::vector< CCPairFunction< T, NDIM > > &rhs, const std::vector< CCPairFunction< T, NDIM > > &lhs)
Definition: ccpairfunction.h:1077
std::vector< CCPairFunction< T, NDIM > > operator*(const double fac, const std::vector< CCPairFunction< T, NDIM > > &arg)
Definition: ccpairfunction.h:1084
double inner(response_space &a, response_space &b)
Definition: response_functions.h:442
void normalize(World &world, std::vector< Function< T, NDIM > > &v, bool fence=true)
Normalizes a vector of functions — v[i] = v[i].scale(1.0/v[i].norm2())
Definition: vmra.h:1614
std::vector< Function< TENSOR_RESULT_TYPE(T, R), NDIM > > transform(World &world, const std::vector< Function< T, NDIM > > &v, const Tensor< R > &c, bool fence=true)
Transforms a vector of functions according to new[i] = sum[j] old[j]*c[j,i].
Definition: vmra.h:689
void matrix_inner(DistributedMatrix< T > &A, const std::vector< Function< T, NDIM > > &f, const std::vector< Function< T, NDIM > > &g, bool sym=false)
Definition: distpm.cc:46
const std::vector< Function< T, NDIM > > & reconstruct(const std::vector< Function< T, NDIM > > &v)
reconstruct a vector of functions
Definition: vmra.h:156
static const double b
Definition: nonlinschro.cc:119
static const double a
Definition: nonlinschro.cc:118
Implements most functionality of separated operators.
Definition: test_ar.cc:204