19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

56 MATRIX OPERATIONS 385<br />

56.8 Transforming operators (TRAN)<br />

TRAN,result, Op, C<br />

calculates result = C(T)*Op*C. The strings result, C, and Op are the internal names of the<br />

matrices. If a backquote (‘) is appended to C or Op the corresponding matrix is transposed<br />

before the operation. Thus,<br />

TRAN,result, Op, C‘<br />

computes result = C*Op*C(T).<br />

56.9 Transforming density matrices into the MO basis (DMO)<br />

DMO,result, D, C<br />

calculates result = C(T)*S*D*S*C. The strings result, C, and D are internal names.<br />

56.10 Diagonalizing a matrix DIAG<br />

DIAG,eigvec,eigval,matrix [,iprint]<br />

Diagonalizes matrix. The eigenvectors and eigenvalues are stored internally with associated<br />

names eigvec and eigval, respectively (arbitrary strings of up to 16 characters). The if iprint.gt.0,<br />

the eigenvalues are printed. If iprint.gt.1, also the eigenvectors are printed.<br />

56.11 Generating natural orbitals (NATORB)<br />

NATORB,name,dens,thresh<br />

computes natural orbitals for density matrix dens. Orbitals with occupation numbers greater or<br />

equal to thresh (default 1.d-4) are printed.<br />

56.12 Forming an outer product of two vectors (OPRD)<br />

OPRD,result,matrix,orb1,orb2,factor<br />

Takes the column vectors v1 and v2 from matrix and adds their outer product to result. v1 and v2<br />

must be given in the form icol.isym, e.g., 3.2 means the third vector in symmetry 2. The result<br />

is<br />

result(a,b) = result(a,b) + f actor ∗ v1(a) ∗ v2(b)<br />

If result has not been used before, it is zeroed before performing the operation.<br />

56.13 Combining matrix columns (ADDVEC)<br />

ADDVEC,result,orbr,source,orbs,factor<br />

Takes the column vector orbs from source and adds it to columnn orbr of result. v1 and v2 must<br />

be given in the form icol.isym, e.g., 3.2 means the third vector in symmetry 2.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!