GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
TeamFactor.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) gpridge developers
3
#pragma once
4
5
#include <Eigen/Core>
6
#include <cstdint>
7
8
namespace
gpr::linalg
{
9
14
[[nodiscard]] std::int64_t
teamPanelWidth
();
15
19
[[nodiscard]]
bool
teamPanelBitsIndependent
();
20
23
[[nodiscard]]
double
teamSolveWallSeconds
();
24
void
teamSolveWallReset
();
25
void
teamAddSolveWall
(
double
seconds);
26
30
class
KernelWall
{
31
public
:
32
enum class
Kind
{
Factor
,
Solve
};
33
explicit
KernelWall
(
Kind
kind)
noexcept
;
34
~KernelWall
();
35
KernelWall
(
const
KernelWall
&) =
delete
;
36
KernelWall
&
operator=
(
const
KernelWall
&) =
delete
;
37
38
private
:
39
Kind
kind_;
40
bool
outermost_;
41
std::int64_t start_ns_;
42
};
43
47
50
void
teamSymmetricGram
(
const
double
* b, std::int64_t ldb,
double
* c,
51
std::int64_t ldc, std::int64_t n);
52
55
[[nodiscard]]
double
teamFactorWallSeconds
();
56
void
teamFactorWallReset
();
57
61
[[nodiscard]]
bool
teamParallelPays
(
double
flops);
62
67
bool
teamCholeskyLower
(
double
* lower, std::int64_t lda, std::int64_t n);
68
72
void
teamSolveLower
(
const
double
* lower, std::int64_t lda,
bool
lower_factor,
73
double
* rhs, std::int64_t ldb, std::int64_t n,
74
std::int64_t cols);
75
80
void
teamSolveLowerVector
(
const
double
* lower, std::int64_t lda,
81
bool
lower_factor,
double
* rhs, std::int64_t n);
82
83
inline
bool
teamCholeskyLower
(Eigen::Ref<Eigen::MatrixXd> lower)
84
{
85
if
(lower.rows() != lower.cols())
return
false
;
86
return
teamCholeskyLower
(lower.data(), lower.outerStride(), lower.rows());
87
}
88
89
inline
void
teamSolveLower
(
const
Eigen::Ref<const Eigen::MatrixXd>& lower,
90
bool
lower_factor, Eigen::Ref<Eigen::MatrixXd> rhs)
91
{
92
teamSolveLower
(lower.data(), lower.outerStride(), lower_factor, rhs.data(),
93
rhs.outerStride(), lower.rows(), rhs.cols());
94
}
95
96
inline
void
teamSolveLowerVector
(
const
Eigen::Ref<const Eigen::MatrixXd>& lower,
97
bool
lower_factor,
98
Eigen::Ref<Eigen::VectorXd> rhs)
99
{
100
teamSolveLowerVector
(lower.data(), lower.outerStride(), lower_factor,
101
rhs.data(), lower.rows());
102
}
103
104
}
// namespace gpr::linalg
gpr::linalg::KernelWall::operator=
KernelWall & operator=(const KernelWall &)=delete
gpr::linalg::KernelWall::Kind
Kind
Definition
TeamFactor.h:32
gpr::linalg::KernelWall::Kind::Factor
@ Factor
Definition
TeamFactor.h:32
gpr::linalg::KernelWall::Kind::Solve
@ Solve
Definition
TeamFactor.h:32
gpr::linalg::KernelWall::~KernelWall
~KernelWall()
Definition
TeamFactor.cpp:127
gpr::linalg::KernelWall::KernelWall
KernelWall(Kind kind) noexcept
Definition
TeamFactor.cpp:122
gpr::linalg::KernelWall::KernelWall
KernelWall(const KernelWall &)=delete
gpr::linalg
Dense and structured linear algebra behind the GP: Cholesky and eigen solvers, linear operators,...
Definition
ConditionedKernel.h:14
gpr::linalg::teamFactorWallReset
void teamFactorWallReset()
Definition
TeamFactor.cpp:112
gpr::linalg::teamSolveLowerVector
void teamSolveLowerVector(const double *lower, std::int64_t lda, bool lower_factor, double *rhs, std::int64_t n)
Definition
TeamFactor.cpp:157
gpr::linalg::teamSolveLower
void teamSolveLower(const double *lower, std::int64_t lda, bool lower_factor, double *rhs, std::int64_t ldb, std::int64_t n, std::int64_t cols)
Definition
TeamFactor.cpp:146
gpr::linalg::teamFactorWallSeconds
double teamFactorWallSeconds()
Definition
TeamFactor.cpp:107
gpr::linalg::teamSymmetricGram
void teamSymmetricGram(const double *b, std::int64_t ldb, double *c, std::int64_t ldc, std::int64_t n)
Definition
TeamFactor.cpp:165
gpr::linalg::teamSolveWallSeconds
double teamSolveWallSeconds()
Definition
TeamFactor.cpp:92
gpr::linalg::teamParallelPays
bool teamParallelPays(double flops)
Definition
TeamFactor.cpp:117
gpr::linalg::teamPanelBitsIndependent
bool teamPanelBitsIndependent()
Definition
TeamFactor.cpp:86
gpr::linalg::teamSolveWallReset
void teamSolveWallReset()
Definition
TeamFactor.cpp:97
gpr::linalg::teamCholeskyLower
bool teamCholeskyLower(double *lower, std::int64_t lda, std::int64_t n)
Definition
TeamFactor.cpp:137
gpr::linalg::teamAddSolveWall
void teamAddSolveWall(double seconds)
Definition
TeamFactor.cpp:102
gpr::linalg::teamPanelWidth
std::int64_t teamPanelWidth()
Definition
TeamFactor.cpp:81
gpr
linalg
TeamFactor.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf