|
constexpr | Matrix () noexcept=default |
|
| Matrix (size_t numRows, size_t numCols) |
|
constexpr T & | operator() (size_t row, size_t col) noexcept |
| main access method
|
|
constexpr T & | operator() (size_t i) noexcept |
|
constexpr const T & | operator() (size_t row, size_t col) const noexcept |
|
constexpr const T & | operator() (size_t i) const noexcept |
|
constexpr Matrix | getSubMatrix (size_t startRow, size_t nRow, size_t startCol, size_t nCol) |
|
constexpr Matrix | transposed () const |
| computes transposed matrix
|
|
void | fill (T val) |
|
void | clear () |
|
size_t | getRowsNum () const |
|
size_t | getColsNum () const |
|
const std::vector< T > & | data () const |
|
constexpr | RectIndexer () noexcept=default |
|
| RectIndexer (const Vector2i &dims) |
|
void | resize (const Vector2i &dims) |
|
const Vector2i & | dims () const |
|
size_t | size () const |
|
Vector2i | toPos (PixelId id) const |
|
Vector2i | toPos (size_t id) const |
|
PixelId | toPixelId (const Vector2i &pos) const |
|
size_t | toIndex (const Vector2i &pos) const |
|
bool | areNeigbors (PixelId v0, PixelId v1) const |
| returns true if v1 is within at most 4 neighbors of v0
|
|
bool | areNeigbors (const Vector2i &pos0, const Vector2i &pos1) const |
|
PixelId | getNeighbor (PixelId v, OutEdge2 toNei) const |
| returns id of v's neighbor specified by the edge
|
|
MRMESH_API PixelId | getNeighbor (PixelId v, const Vector2i &pos, OutEdge2 toNei) const |
|
template<typename T>
struct MR::Matrix< T >
Row-major matrix with T values