Skip to content

Commit

Permalink
missing operator== for block diagonal LDLT
Browse files Browse the repository at this point in the history
  • Loading branch information
peddie committed Aug 6, 2024
1 parent 5fbada0 commit f4f5b9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/albatross/src/linalg/block_diagonal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ struct BlockDiagonalLDLT {
Eigen::Index rows() const;

Eigen::Index cols() const;

bool operator==(const BlockDiagonalLDLT &other) const;
};

struct BlockDiagonal {
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit f4f5b9b

Please sign in to comment.