From f4f5b9b2ccb110c244beaf83f32638e733875e3f Mon Sep 17 00:00:00 2001 From: Matt Peddie Date: Wed, 7 Aug 2024 04:13:40 +1000 Subject: [PATCH] missing operator== for block diagonal LDLT --- include/albatross/src/linalg/block_diagonal.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/albatross/src/linalg/block_diagonal.hpp b/include/albatross/src/linalg/block_diagonal.hpp index 29321879..c57fd1c5 100644 --- a/include/albatross/src/linalg/block_diagonal.hpp +++ b/include/albatross/src/linalg/block_diagonal.hpp @@ -68,6 +68,8 @@ struct BlockDiagonalLDLT { Eigen::Index rows() const; Eigen::Index cols() const; + + bool operator==(const BlockDiagonalLDLT &other) const; }; struct BlockDiagonal { @@ -248,6 +250,11 @@ inline const BlockDiagonalLDLT &BlockDiagonalLDLT::adjoint() const { return *this; } +inline bool +BlockDiagonalLDLT::operator==(const BlockDiagonalLDLT &other) const { + return blocks == other.blocks; +} + /* * Block Diagonal */