Template Function Acts::bitsetToMatrix¶
Defined in File Helpers.hpp
Function Documentation¶
-
template<typename
MatrixType
>
MatrixTypeActs
::
bitsetToMatrix
(const std::bitset<MatrixType::RowsAtCompileTime * MatrixType::ColsAtCompileTime> bs)¶ Convert a bitset to a matrix of integers, with each element set to the bit value.
- Note
How the bits are assigned to matrix elements depends on the storage type of the matrix being converted (row-major or col-major)
- Return
A matrix with the integer values of the bits from
bs
- Template Parameters
MatrixType
: Matrix type that is produced
- Parameters
bs
: The bitset to convert