|
Chombo + EB + MF
3.2
|
Allocator for an array of matrices contiguous in memory. More...
#include <CHArray.H>
Public Member Functions | |
| ArrayOfMatrixAlloc () | |
| void | define (const USz_t a_m, const USz_t a_n) |
| CHMatrix * | allocate (const USz_t size) |
| void | deallocate (CHMatrix *p, const USz_t size) |
Private Attributes | |
| Real * | matrixData |
| USz_t | m |
| USz_t | n |
| bool | defined |
Allocator for an array of matrices contiguous in memory.
Useful for allocating an array of matrices which can be easily passed to Fortran, etc.
Example - 1D Array of 2 3x3 matrices
* * CHArray<CHMatrix, 1, ArZeroRow, ArSp::ArrayOfMatrixAlloc> AM; * AM.getAllocator().define(3, 3); * AM.define(2); * AM(0) = 1.1; * AM(1) = 1.9; * std::cout << AM << std::endl; *
|
inline |
References CH_assert, CHArray< T, Rank, ArConf, Alloc >::define(), and M.
References IntVect::p().
|
private |
|
private |
|
private |
|
private |
1.8.13