![]() |
Documentation 6b54b78464
|
Simple matrix views to use with the python wrapper. More...
#include <string>#include <utility>#include <vector>#include "../geometry/dual_grid/CVertex.hpp"#include "../parallelization/mpi_structure.hpp"#include "C2DContainer.hpp"Go to the source code of this file.
Classes | |
| class | CPyWrapperMatrixView |
| This class wraps su2activematrix for the python wrapper matrix interface. It is generaly used to wrap access to solver variables defined for the entire volume. More... | |
| class | CPyWrapperMarkerMatrixView |
| This class wraps su2activematrix for the python wrapper matrix interface restricting it to the vertices of a given marker. More... | |
| class | CPyWrapper3DMatrixView |
| This class wraps C3DDoubleMatrix for the python wrapper matrix interface. It is generaly used to wrap access to solver gradients defined for the entire volume. More... | |
Macros | |
| #define | PY_WRAPPER_MATRIX_INTERFACE |
| Python wrapper matrix interface The accessors in this macro provide a passive double interface to matrix of su2double. This can be extended to allow access to derivative information. Classes that use this macro encapsulate the access to the raw data (su2double) via the functions "Access(row, col) -> su2double&" (const and non-const versions). We use a macro because it is diffult to use modern C++ idioms (e.g. CRTP) with SWIG. In addition to "Access" classes must have member variables "rows_", "cols_", and "read_only_". | |
Simple matrix views to use with the python wrapper.
SU2 Project Website: https://su2code.github.io
The SU2 Project is maintained by the SU2 Foundation (http://su2foundation.org)
Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.
| #define PY_WRAPPER_MATRIX_INTERFACE |
Python wrapper matrix interface The accessors in this macro provide a passive double interface to matrix of su2double. This can be extended to allow access to derivative information. Classes that use this macro encapsulate the access to the raw data (su2double) via the functions "Access(row, col) -> su2double&" (const and non-const versions). We use a macro because it is diffult to use modern C++ idioms (e.g. CRTP) with SWIG. In addition to "Access" classes must have member variables "rows_", "cols_", and "read_only_".