Shortcut: DETERMINANT
| Module | matrixtools |
|---|---|
| Description | Usage |
| Calculate the determinant of a matrix | |
| output value | type |
| the determinant of the matrix | scalar |
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:
d1: DISTANCE_MATRIXCalculate a matrix of distances between atoms. This action has hidden defaults. More details ATOMSYou should use GROUP instead of this keyword which was used in older versions of PLUMED and is provided for back compatibility only=1-5 det: DETERMINANTCalculate 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.
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 |
Full list of keywords
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 |