19.01.2015 Views

MOLPRO

MOLPRO

MOLPRO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

56 MATRIX OPERATIONS 381<br />

code may be one of the following:<br />

LOAD<br />

SAVE<br />

ADD<br />

TRACE<br />

MULT<br />

TRAN<br />

DMO<br />

NATORB<br />

DIAG<br />

OPRD<br />

DENS<br />

FOCK<br />

COUL<br />

EXCH<br />

PRINT<br />

PRID<br />

PRIO<br />

ELEM<br />

READ<br />

WRITE<br />

SET<br />

ADDVEC<br />

Loads a matrix from a file<br />

Saves a matrix to a file<br />

Adds matrices<br />

Forms the trace of a matrix or of the product of two matrices<br />

Multiplies two matrices<br />

Transforms a matrix<br />

Transforms density into MO basis<br />

Computes natural orbitals<br />

Diagonalizes a matrix<br />

Forms an outer product of two vectors<br />

Forms a closed-shell density matrix<br />

Computes a closed-shell fock matrix<br />

Computes a coulomb operator<br />

Computes an exchange operator<br />

Prints a matrix<br />

Prints diagonal elements of a matrix<br />

Prints orbitals<br />

Assigns a matrix element to a variable<br />

Reads a square matrix from input<br />

Writes a square matrix to a file<br />

Assigns a value to a variable<br />

Adds a multiple of a column of one matrix to a column of a second<br />

matrix<br />

Note that the file name appearing in above commands is converted to lower case on unix machines.<br />

See the following subsections for explanations.<br />

56.1 Calling the matrix facility (MATROP)<br />

The program is called by the input card MATROP without further specifications.<br />

MATROP<br />

It can be followed by the following commands in any order, with the restriction that a maximum<br />

of 50 matrices can be handled. The first entry in each command line is a command keyword,<br />

followed by the name of the result matrix. If the specified result matrix result already exists, it<br />

is overwritten, otherwise a new matrix is created. All matrices needed in the operations must<br />

must have been loaded or defined before, unless otherwise stated.<br />

If a backquote (‘) is appended to a name, the matrix is transposed.

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

Saved successfully!

Ooh no, something went wrong!