GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
MatrixComparison.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) gpridge developers
3
#pragma once
4
5
namespace
gpr::detail {
6
8
template
<
typename
Lhs,
typename
Rhs>
9
inline
bool
matrixExactlyEqual(
const
Lhs& lhs,
const
Rhs& rhs)
10
{
11
if
(lhs.rows() != rhs.rows() || lhs.cols() != rhs.cols())
return
false
;
12
if
(lhs.size() == 0)
return
true
;
13
return
(lhs.array() == rhs.array()).all();
14
}
15
16
}
// namespace gpr::detail
gpr
auxiliary
MatrixComparison.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf