ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
socket_frame_utils.h
Go to the documentation of this file.
1#ifndef ABACUS_SOURCE_RELAX_SOCKET_FRAME_UTILS_H
2#define ABACUS_SOURCE_RELAX_SOCKET_FRAME_UTILS_H
3
5
6namespace FrameUtils
7{
8constexpr int kMatrixDimension = 3;
9extern const int kMaxJacobiSweeps;
10
11bool is_finite_matrix(const SocketFrame::Matrix9 &values);
12double column_norm_squared(const SocketFrame::Matrix9 &values, int column);
13double column_dot(const SocketFrame::Matrix9 &values, int first, int second);
17 int first,
18 int second,
19 double cosine,
20 double sine);
22long double scaled_determinant(const SocketFrame::Matrix9 &values);
24 const SocketFrame::Matrix9 &cell, const SocketFrame::Matrix9 &inverse, bool transpose_inverse);
25} // namespace FrameUtils
26
27#endif
Definition socket_frame_utils.cpp:8
double column_dot(const SocketFrame::Matrix9 &values, int first, int second)
Definition socket_frame_utils.cpp:34
void rotate_columns(SocketFrame::Matrix9 &values, int first, int second, double cosine, double sine)
Definition socket_frame_utils.cpp:63
bool columns_are_orthogonal(const SocketFrame::Matrix9 &values)
Definition socket_frame_utils.cpp:44
double received_inverse_residual(const SocketFrame::Matrix9 &cell, const SocketFrame::Matrix9 &inverse, bool transpose_inverse)
Definition socket_frame_utils.cpp:132
bool is_finite_matrix(const SocketFrame::Matrix9 &values)
Definition socket_frame_utils.cpp:11
bool one_sided_jacobi(SocketFrame::Matrix9 &columns, SocketFrame::Matrix9 &right_vectors)
Definition socket_frame_utils.cpp:81
double column_norm_squared(const SocketFrame::Matrix9 &values, int column)
Definition socket_frame_utils.cpp:23
constexpr int kMatrixDimension
Definition socket_frame_utils.h:8
long double scaled_determinant(const SocketFrame::Matrix9 &values)
Definition socket_frame_utils.cpp:118
const int kMaxJacobiSweeps
Definition socket_frame_utils.cpp:9
std::array< double, 9 > Matrix9
Definition socket_frame.h:12