eOn client
Long-timescale dynamics: aKMC, NEB, parallel replica
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
MatrixHelpers.hpp
Go to the documentation of this file.
1
/*
2
** This file is part of eOn.
3
**
4
** SPDX-License-Identifier: BSD-3-Clause
5
**
6
** Copyright (c) 2010--present, eOn Development Team
7
** All rights reserved.
8
**
9
** Repo:
10
** https://github.com/TheochemUI/eOn
11
*/
12
#pragma once
13
#include "
Matter.h
"
14
#include "
Parameters.h
"
15
16
namespace
eonc
{
17
18
namespace
helpers
{
19
25
template
<
typename
T>
26
bool
eigenEquality
(
const
Eigen::MatrixBase<T> &lhs,
27
const
Eigen::MatrixBase<T> &rhs,
28
const
double
threshold = 1e-4) {
29
return
lhs.isApprox(rhs, threshold);
30
}
31
}
// namespace helpers
32
33
}
// namespace eonc
Matter.h
Parameters.h
eonc::helpers
Definition
EnvHelpers.cc:5
eonc::helpers::eigenEquality
bool eigenEquality(const Eigen::MatrixBase< T > &lhs, const Eigen::MatrixBase< T > &rhs, const double threshold=1e-4)
Check two eigen objects for equality.
Definition
MatrixHelpers.hpp:26
eonc
RAII resource manager for the ARTn C library with global synchronization.
Definition
ARTnSaddleSearch.cpp:19
include
eon
MatrixHelpers.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf