#include <gtopt/multi_array_2d.hpp>
MultiArray2D class
Minimal 2D array wrapper around std::vector.
| Template parameters | |
|---|---|
| T | Element type |
Provides a simple 2D array interface compatible with boost::multi_array usage in the gtopt codebase. Supports:
- 2D indexing via operator[]
- empty() to check initialization
- Default construction (empty state)
- Construction with dimensions
Row access returns std::span for size-aware sub-range views.
Constructors, destructors, conversion operators
- MultiArray2D() defaulted
- Default constructor - creates empty array.
-
MultiArray2D(size_
t dim1, size_ t dim2) - Construct with dimensions.
Public functions
Function documentation
gtopt:: MultiArray2D<T>:: MultiArray2D(size_ t dim1,
size_ t dim2)
Construct with dimensions.
| Parameters | |
|---|---|
| dim1 | First dimension size |
| dim2 | Second dimension size |