|
Sleipnir
|
A special symmetric matrix in which each entry consumes exactly one bit. More...
#include <halfmatrix.h>
Public Member Functions | |
| bool | Get (size_t iY, size_t iX) const |
| Returns the value at the requested matrix position. | |
| void | Set (size_t iY, size_t iX, bool fValue) |
| Set the value at the requested matrix position. | |
| void | Initialize (size_t iSize, bool fClear=false, unsigned char **aabData=NULL) |
| Create a new matrix of the requested size and, optionally, referencing the given data. | |
A special symmetric matrix in which each entry consumes exactly one bit.
Definition at line 427 of file halfmatrix.h.
| bool Sleipnir::CBinaryMatrix::Get | ( | size_t | iY, |
| size_t | iX | ||
| ) | const [inline] |
Returns the value at the requested matrix position.
| iY | Matrix row. |
| iX | Matrix column. |
Reimplemented from Sleipnir::CHalfMatrix< unsigned char >.
Definition at line 449 of file halfmatrix.h.
References Sleipnir::CHalfMatrix< unsigned char >::m_aaData.
Referenced by Sleipnir::CDataMask::AttachComplement(), Sleipnir::CDataMask::AttachRandom(), Sleipnir::CDatasetCompactMap::IsExample(), and Sleipnir::CDataMask::IsExample().
| void Sleipnir::CBinaryMatrix::Initialize | ( | size_t | iSize, |
| bool | fClear = false, |
||
| unsigned char ** | aabData = NULL |
||
| ) | [inline] |
Create a new matrix of the requested size and, optionally, referencing the given data.
| iSize | Matrix elements. |
| fClear | If true, initialize the new matrix to contain only false values. |
| aabData | If non-null, the memory that will back the newly created matrix. |
Definition at line 502 of file halfmatrix.h.
References Sleipnir::CHalfMatrix< unsigned char >::m_aaData, Sleipnir::CHalfMatrix< unsigned char >::m_fMemory, and Sleipnir::CHalfMatrix< unsigned char >::Reset().
Referenced by Sleipnir::CDataMask::Attach(), and Sleipnir::CDatasetCompactMap::Open().
| void Sleipnir::CBinaryMatrix::Set | ( | size_t | iY, |
| size_t | iX, | ||
| bool | fValue | ||
| ) | [inline] |
Set the value at the requested matrix position.
| iY | Matrix row. |
| iX | Matrix column. |
| fValue | Value to store. |
Definition at line 476 of file halfmatrix.h.
References Sleipnir::CHalfMatrix< unsigned char >::m_aaData.
Referenced by Sleipnir::CDataMask::Attach(), Sleipnir::CDataMask::AttachComplement(), Sleipnir::CDataMask::AttachRandom(), Sleipnir::CDatasetCompactMap::Open(), Sleipnir::CDatasetCompactMap::Remove(), and Sleipnir::CDataMask::Remove().
1.7.6.1