Class slamcore::MatrixInterface

class slamcore::MatrixInterface : public ObjectInterface

Representing the matrix object.

Subclassed by Matrix

Convenient access to the element.

inline const ScalarT &operator()(const std::size_t r, const std::size_t c) const
inline const ScalarT &get(const std::size_t r, const std::size_t c) const

Public Types

using Ptr = std::shared_ptr<MatrixInterface>
using CPtr = std::shared_ptr<const MatrixInterface>

Public Functions

inline virtual ObjectType type() const

Type of the object.

virtual ~MatrixInterface() = default
virtual std::size_t rows() const = 0

Number of rows in the matrix.

virtual std::size_t cols() const = 0

Number of columns in the matrix.

virtual std::size_t size() const = 0

Total number of elements in the matrix.