Psi4
Namespaces | Functions
psi::linalg Namespace Reference

Namespaces

 detail
 

Functions

SharedMatrix horzcat (const std::vector< SharedMatrix > &mats)
 
SharedMatrix vertcat (const std::vector< SharedMatrix > &mats)
 
SharedMatrix doublet (const SharedMatrix &A, const SharedMatrix &B, bool transA, bool transB)
 
SharedMatrix triplet (const SharedMatrix &A, const SharedMatrix &B, const SharedMatrix &C, bool transA, bool transB, bool transC)
 

Function Documentation

PSI_API SharedMatrix psi::linalg::doublet ( const SharedMatrix &  A,
const SharedMatrix &  B,
bool  transA = false,
bool  transB = false 
)

Simple doublet GEMM with on-the-fly allocation

Parameters
AThe first matrix
BThe second matrix
transATranspose the first matrix
transBTranspose the second matrix
PSI_API SharedMatrix psi::linalg::horzcat ( const std::vector< SharedMatrix > &  mats)

Horizontally concatenate matrices

Parameters
matsstd::vector of Matrix objects to concatenate
PSI_API SharedMatrix psi::linalg::triplet ( const SharedMatrix &  A,
const SharedMatrix &  B,
const SharedMatrix &  C,
bool  transA = false,
bool  transB = false,
bool  transC = false 
)

Simple triplet GEMM with on-the-fly allocation

Parameters
AThe first matrix
BThe second matrix
CThe third matrix
transATranspose the first matrix
transBTranspose the second matrix
transCTranspose the third matrix
PSI_API SharedMatrix psi::linalg::vertcat ( const std::vector< SharedMatrix > &  mats)

Vertically concatenate matrices

Parameters
matsstd::vector of Matrix objects to concatenate