Shortcut: DETERMINANT
Module | matrixtools |
---|---|
Description | Usage |
Calculate the determinant of a matrix | |
output value | type |
the determinant of the matrix | scalar |
Input
The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.
Keyword | Type | Description |
---|---|---|
ARG | matrix | The matrix that we are calculating the determinant for |
Further details and examples
Calculate the determinant of a matrix
This shorctu allows you to calculate the determinant of a square matrix. The following example shows how the action is used:
d1DISTANCE_MATRIXCalculate a matrix of distances between atoms. This action has hidden defaults. More details ATOMSthe atoms for which you would like to calculate the adjacency matrix=1-5 : detDETERMINANTCalculate the determinant of a matrix This action is a shortcut. More details ARGThe matrix that we are calculating the determinant for=d1 : PRINTPrint quantities to a file. More details ARGthe labels of the values that you would like to print to the file=det FILEthe name of the file on which to output these quantities=colvar
If you look at the expanded version of the input above you can see that PLUMED calculates the determinant by first diagonalising the input matrix and then calculating the product of the eigenvalues.
Syntax
The following table describes the keywords and options that can be used with this action
Keyword | Type | Default | Description |
---|---|---|---|
ARG | input | none | The matrix that we are calculating the determinant for |