You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.01.

Class slamcore::Matrix

class Matrix : public MatrixInterface

Simple matrix to adapt std::vector to MatrixInterface.

Public Functions

Matrix()
virtual ~Matrix() = default
Matrix(const Matrix &other) = default
Matrix(Matrix &&other) = default
Matrix &operator=(const Matrix &other) = default
Matrix &operator=(Matrix &&other) = default
Matrix(const MatrixInterface &other)
virtual std::size_t rows() const final override

Number of rows in the matrix.

virtual std::size_t cols() const final override

Number of columns in the matrix.

virtual std::size_t size() const final override

Total number of elements in the matrix.