.TH "sc::BatchElectronDensity" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::BatchElectronDensity \- This a more highly optimized than \fBElectronDensity\fP since everything is precomputed\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::Volume\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum { \fBX\fP =0, \fBY\fP =1, \fBZ\fP =2 }" .br .RI "This gives the elements of gradient arrays\&. " .ti -1c .RI "enum { \fBXX\fP =0, \fBYX\fP =1, \fBYY\fP =2, \fBZX\fP =3, \fBZY\fP =4, \fBZZ\fP =5 }" .br .RI "This gives the elements of hessian arrays\&. " .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBBatchElectronDensity\fP (const \fBRef\fP< \fBKeyVal\fP > &)" .br .ti -1c .RI "\fBBatchElectronDensity\fP (const \fBRef\fP< \fBWavefunction\fP > &, double accuracy=DBL_EPSILON)" .br .ti -1c .RI "\fBBatchElectronDensity\fP (const \fBRef\fP< \fBBatchElectronDensity\fP > &d, bool reference_parent_data=false)" .br .RI "This will construct copies of this\&. " .ti -1c .RI "virtual void \fBboundingbox\fP (double valuemin, double valuemax, \fBSCVector3\fP &p1, \fBSCVector3\fP &p2)" .br .RI "Returns the bounding box\&. " .ti -1c .RI "void \fBclear\fP ()" .br .RI "This will cause all stratch storage to be released\&. " .ti -1c .RI "void \fBcompute_density\fP (const \fBSCVector3\fP &r, double *alpha_density, double *alpha_density_grad, double *alpha_density_hessian, double *beta_density, double *beta_density_grad, double *beta_density_hessian)" .br .RI "This is a alternate to the \fBVolume\fP interface that avoids some of the overhead of that interface\&. " .ti -1c .RI "virtual void \fBinit\fP (bool initialize_density_matrices=true)" .br .RI "This is called to finish initialization of the object\&. " .ti -1c .RI "virtual void \fBset_densities\fP (const \fBRefSymmSCMatrix\fP &aden, const \fBRefSymmSCMatrix\fP &bden)" .br .RI "This will fill in the internel copies of the density matrices with new values\&. " .ti -1c .RI "void \fBset_linear_scaling\fP (bool b)" .br .RI "Turn linear scaling algorithm on/off\&. " .ti -1c .RI "void \fBset_accuracy\fP (double a)" .br .RI "Sets the accuracy\&. " .ti -1c .RI "void \fBset_use_dmat_bound\fP (bool b)" .br .RI "Turn use of density matrix bounds on/off\&. " .in -1c .PP .RI "\fBDFT Support Members\&.\fP" .br These return some of the internal data, some of which is only value after a density has been computed\&. .PP This data is needed by the density functional theory code\&. .PP .in +1c .in +1c .ti -1c .RI "double * \fBalpha_density_matrix\fP ()" .br .RI "Return the alpha density matrix\&. " .ti -1c .RI "double * \fBbeta_density_matrix\fP ()" .br .RI "Return the beta density matrix\&. " .ti -1c .RI "int \fBncontrib\fP ()" .br .ti -1c .RI "int * \fBcontrib\fP ()" .br .ti -1c .RI "int \fBncontrib_bf\fP ()" .br .ti -1c .RI "int * \fBcontrib_bf\fP ()" .br .ti -1c .RI "double * \fBbs_values\fP ()" .br .ti -1c .RI "double * \fBbsg_values\fP ()" .br .ti -1c .RI "double * \fBbsh_values\fP ()" .br .ti -1c .RI "void \fBset_need_basis_gradient\fP (bool b)" .br .RI "To ensure that that the basis functions gradients are computed, use this\&. " .ti -1c .RI "void \fBset_need_basis_hessian\fP (bool b)" .br .in -1c .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBinit_common_data\fP (bool initialize_density_matrices)" .br .ti -1c .RI "virtual void \fBinit_scratch_data\fP ()" .br .ti -1c .RI "void \fBcompute_basis_values\fP (const \fBSCVector3\fP &r)" .br .ti -1c .RI "void \fBcompute_spin_density\fP (const double *dmat, double *rho, double *grad, double *hess)" .br .ti -1c .RI "virtual void \fBcompute\fP ()" .br .RI "Recompute at least the results that have compute true and are not already computed\&. " .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "\fBRef\fP< \fBWavefunction\fP > \fBwfn_\fP" .br .ti -1c .RI "\fBRef\fP< \fBGaussianBasisSet\fP > \fBbasis_\fP" .br .ti -1c .RI "double * \fBalpha_dmat_\fP" .br .ti -1c .RI "double * \fBbeta_dmat_\fP" .br .ti -1c .RI "double * \fBdmat_bound_\fP" .br .ti -1c .RI "\fBShellExtent\fP * \fBextent_\fP" .br .ti -1c .RI "\fBGaussianBasisSet::ValueData\fP * \fBvaldat_\fP" .br .ti -1c .RI "int \fBncontrib_\fP" .br .ti -1c .RI "int * \fBcontrib_\fP" .br .ti -1c .RI "int \fBncontrib_bf_\fP" .br .ti -1c .RI "int * \fBcontrib_bf_\fP" .br .ti -1c .RI "double * \fBbs_values_\fP" .br .ti -1c .RI "double * \fBbsg_values_\fP" .br .ti -1c .RI "double * \fBbsh_values_\fP" .br .ti -1c .RI "int \fBnshell_\fP" .br .ti -1c .RI "int \fBnbasis_\fP" .br .ti -1c .RI "int \fBspin_polarized_\fP" .br .ti -1c .RI "int \fBlinear_scaling_\fP" .br .ti -1c .RI "int \fBuse_dmat_bound_\fP" .br .ti -1c .RI "bool \fBneed_hessian_\fP" .br .ti -1c .RI "bool \fBneed_gradient_\fP" .br .ti -1c .RI "bool \fBneed_basis_hessian_\fP" .br .ti -1c .RI "bool \fBneed_basis_gradient_\fP" .br .ti -1c .RI "bool \fBusing_shared_data_\fP" .br .ti -1c .RI "double \fBaccuracy_\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP This a more highly optimized than \fBElectronDensity\fP since everything is precomputed\&. However, it cannot be used if the density and/or geometry might change between computations of the density or bounding box, unless the obsolete member is called\&. .SH "Constructor & Destructor Documentation" .PP .SS "sc::BatchElectronDensity::BatchElectronDensity (const \fBRef\fP< \fBBatchElectronDensity\fP > & d, bool reference_parent_data = \fCfalse\fP)" .PP This will construct copies of this\&. If reference_parent_data is true, then data that do not change, such as the density matrices and shell extent, are referenced rather than copied\&. In this case, the original object that allocated this items must be valid while copied objects are used to compute densities\&. Also d must have already been intialized and the resulting copy is already initialized (and cannot be reinitialized)\&. .PP If reference_parent_data is false, then init must be called on this object before it is used\&. .br .SH "Member Function Documentation" .PP .SS "virtual void sc::BatchElectronDensity::compute ()\fC [protected]\fP, \fC [virtual]\fP" .PP Recompute at least the results that have compute true and are not already computed\&. This should only be called by \fBResult\fP's members\&. .PP Implements \fBsc::Volume\fP\&. .SS "virtual void sc::BatchElectronDensity::init (bool initialize_density_matrices = \fCtrue\fP)\fC [virtual]\fP" .PP This is called to finish initialization of the object\&. It must not be called with objects that created in a way that they share parent data, those objects are initialized when they are constructed\&. This member is usually called automatically, however, if it will be used to initial other objects that share parent data, then it must be initialized first and this return is the way to do that\&. If initialize_density_matrices is false, then the density matrices will be allocated, but not filled in\&. They must be later filled in with set_densities\&. .SS "void sc::BatchElectronDensity::set_accuracy (double a)\fC [inline]\fP" .PP Sets the accuracy\&. .br .SS "virtual void sc::BatchElectronDensity::set_densities (const \fBRefSymmSCMatrix\fP & aden, const \fBRefSymmSCMatrix\fP & bden)\fC [virtual]\fP" .PP This will fill in the internel copies of the density matrices with new values\&. aden is the alpha density matrix and bden is the beta density matrix\&. bden is ignored if the wavefunction is not spin polarized\&. .SS "void sc::BatchElectronDensity::set_linear_scaling (bool b)\fC [inline]\fP" .PP Turn linear scaling algorithm on/off\&. The effect of this will be delayed until the next time \fBinit()\fP is called\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.