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
16namespace eonc {
17
18namespace helpers {
19
27template <typename T>
28bool eigenEquality(const Eigen::MatrixBase<T> &lhs,
29 const Eigen::MatrixBase<T> &rhs,
30 const double threshold = 1e-4) {
31 return lhs.isApprox(rhs, threshold);
32}
33} // namespace helpers
34
35} // namespace eonc
bool eigenEquality(const Eigen::MatrixBase< T > &lhs, const Eigen::MatrixBase< T > &rhs, const double threshold=1e-4)
Check two eigen objects for equality.
RAII resource manager for the ARTn C library with global synchronization.