COSC-4P80-Assignment-2/lib/eigen-3.4.0/bench/perf_monitoring/llt.cpp

16 lines
298 B
C++
Raw Normal View History

2024-10-21 16:42:03 -04:00
#include "gemm_common.h"
#include <Eigen/Cholesky>
EIGEN_DONT_INLINE
void llt(const Mat &A, const Mat &B, Mat &C)
{
C = A;
C.diagonal().array() += 1000;
Eigen::internal::llt_inplace<Mat::Scalar, Lower>::blocked(C);
}
int main(int argc, char **argv)
{
return main_gemm(argc, argv, llt);
}