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
25template <typename T>
26bool 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
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.