Skip to content

Commit f4f5b9b

Browse files
committed
missing operator== for block diagonal LDLT
1 parent 5fbada0 commit f4f5b9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/albatross/src/linalg/block_diagonal.hpp

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ struct BlockDiagonalLDLT {
6868
Eigen::Index rows() const;
6969

7070
Eigen::Index cols() const;
71+
72+
bool operator==(const BlockDiagonalLDLT &other) const;
7173
};
7274

7375
struct BlockDiagonal {
@@ -248,6 +250,11 @@ inline const BlockDiagonalLDLT &BlockDiagonalLDLT::adjoint() const {
248250
return *this;
249251
}
250252

253+
inline bool
254+
BlockDiagonalLDLT::operator==(const BlockDiagonalLDLT &other) const {
255+
return blocks == other.blocks;
256+
}
257+
251258
/*
252259
* Block Diagonal
253260
*/

0 commit comments

Comments
 (0)