triplet¶
- psi4.core.triplet(A: psi4.core.Matrix, B: psi4.core.Matrix, C: psi4.core.Matrix, transA: bool = False, transB: bool = False, transC: bool = False) psi4.core.Matrix ¶
Returns the multiplication of three matrices, with options to transpose each beforehand.
- Parameters:
A – First matrix to multiply.
B – Second matrix to multiply.
C – Third matrix to multiply.
transA – Transpose the first matrix before operations?
transB – Transpose the second matrix before operations?
transC – Transpose the third matrix before operations?
- Returns:
New matrix of
ABC
.- Return type:
Notes
(AB)C
vs.A(BC)
selected by cost analysis of overall (not per-irrep) dimensions.If A, B, C not of the the same symmetry, always computed as
(AB)C
.