.TH "sc::SumIntCoor" 3 "Sun Oct 4 2020" "Version 2.3.1" "MPQC" \" -*- nroff -*- .ad l .nh .SH NAME sc::SumIntCoor \- \fBSumIntCoor\fP is used to construct linear combinations of internal coordinates\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits \fBsc::IntCoor\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBSumIntCoor\fP (\fBStateIn\fP &)" .br .ti -1c .RI "\fBSumIntCoor\fP (const char *)" .br .RI "This constructor takes a string containing a label for this coordinate\&. " .ti -1c .RI "\fBSumIntCoor\fP (const \fBRef\fP< \fBKeyVal\fP > &)" .br .RI "The \fBKeyVal\fP constructor\&. " .ti -1c .RI "void \fBsave_data_state\fP (\fBStateOut\fP &)" .br .RI "Save the base classes (with save_data_state) and the members in the same order that the \fBStateIn\fP CTOR initializes them\&. " .ti -1c .RI "int \fBn\fP ()" .br .RI "Returns the number of coordinates in this linear combination\&. " .ti -1c .RI "void \fBadd\fP (\fBRef\fP< \fBIntCoor\fP > &, double coef)" .br .RI "Add a coordinate to the linear combination\&. " .ti -1c .RI "void \fBnormalize\fP ()" .br .RI "This function normalizes all the coefficients\&. " .ti -1c .RI "double \fBpreferred_value\fP () const" .br .RI "Returns the value of the coordinate in a\&.u\&. and radians\&. " .ti -1c .RI "const char * \fBctype\fP () const" .br .RI "Always returns ``SUM''\&. " .ti -1c .RI "void \fBprint_details\fP (const \fBRef\fP< \fBMolecule\fP > &, std::ostream &=\fBExEnv::out0\fP()) const" .br .RI "Print the individual coordinates in the sum with their coefficients\&. " .ti -1c .RI "double \fBforce_constant\fP (\fBRef\fP< \fBMolecule\fP > &)" .br .RI "Returns the weighted sum of the individual force constants\&. " .ti -1c .RI "void \fBupdate_value\fP (const \fBRef\fP< \fBMolecule\fP > &)" .br .RI "Recalculate the value of the coordinate\&. " .ti -1c .RI "void \fBbmat\fP (const \fBRef\fP< \fBMolecule\fP > &, \fBRefSCVector\fP &bmat, double coef=1\&.0)" .br .RI "Fill in a row the the B matrix\&. " .ti -1c .RI "int \fBequivalent\fP (\fBRef\fP< \fBIntCoor\fP > &)" .br .RI "Always returns 0\&. " .in -1c .SS "Additional Inherited Members" .SH "Detailed Description" .PP \fBSumIntCoor\fP is used to construct linear combinations of internal coordinates\&. The following is a sample \fBParsedKeyVal\fP input for a \fBSumIntCoor\fP object: .PP .nf sumintcoor<\fBSumIntCoor\fP>: ( coor: [ <\fBStreSimpleCo\fP>:( atoms = [ 1 2 ] ) <\fBStreSimpleCo\fP>:( atoms = [ 2 3 ] ) ] coef = [ 1\&.0 1\&.0 ] ) .fi .PP .SH "Constructor & Destructor Documentation" .PP .SS "sc::SumIntCoor::SumIntCoor (const \fBRef\fP< \fBKeyVal\fP > &)" .PP The \fBKeyVal\fP constructor\&. .IP "\fB\fCcoor\fP\fP" 1c A vector of \fBIntCoor\fP objects that define the summed coordinates\&. .PP .IP "\fB\fCcoef\fP\fP" 1c A vector of floating point numbers that gives the coefficients of the summed coordinates\&. .PP .PP .SH "Member Function Documentation" .PP .SS "void sc::SumIntCoor::add (\fBRef\fP< \fBIntCoor\fP > &, double coef)" .PP Add a coordinate to the linear combination\&. coef is the coefficient for the added coordinate\&. .SS "void sc::SumIntCoor::save_data_state (\fBStateOut\fP &)\fC [virtual]\fP" .PP Save the base classes (with save_data_state) and the members in the same order that the \fBStateIn\fP CTOR initializes them\&. This must be implemented by the derived class if the class has data\&. .PP Reimplemented from \fBsc::IntCoor\fP\&. .SH "Author" .PP Generated automatically by Doxygen for MPQC from the source code\&.