|
Macaulay2 Engine
|
Fixed-size, owned array of ElementTypes for the linear-algebra templates that want a flat buffer they can operator[] into. More...
#include <coeffrings.hpp>
Public Member Functions | |
| ElementArray (const CoefficientRingR &ring, size_t size) | |
| ~ElementArray () | |
| ElementType & | operator[] (size_t idx) |
| const ElementType & | operator[] (size_t idx) const |
| ElementType * | data () |
| const ElementType * | data () const |
Private Attributes | |
| ElementType * | mData |
Additional Inherited Members | |
| Static Public Member Functions inherited from our_new_delete | |
| static void * | operator new (size_t size) |
| static void * | operator new[] (size_t size) |
| static void | operator delete (void *obj) |
| static void | operator delete[] (void *obj) |
| static void * | operator new (size_t size, void *existing_memory) |
| static void * | operator new[] (size_t size, void *existing_memory) |
| static void | operator delete (void *obj, void *existing_memory) |
| static void | operator delete[] (void *obj, void *existing_memory) |
Fixed-size, owned array of ElementTypes for the linear-algebra templates that want a flat buffer they can operator[] into.
Allocates via newarray, initialises every slot through ring.init, and frees via freemem in the destructor. Used as the per-row storage backing dense matrix code that runs over CoefficientRingR.
Definition at line 298 of file coeffrings.hpp.