Macaulay2 Engine
Loading...
Searching...
No Matches
FlintQQMat Class Reference

RAII wrapper around FLINT's fmpq_mat_t for translating dense QQ-coefficient matrices between the engine and FLINT. More...

#include <dmat-qq-interface-flint.hpp>

Public Types

typedef DMat< M2::ARingQQDMatQQ

Public Member Functions

 FlintQQMat (const DMatQQ &mat)
 FlintQQMat (long numrows, long numcolumns)
 ~FlintQQMat ()
fmpq_mat_struct * value ()
void toDMat (DMatQQ &result)
long numRows () const
long numColumns () const
void set_from_fmpz (long r, long c, fmpz_t val)

Static Private Member Functions

static void to_fmpq_mat (const DMatQQ &mat1, fmpq_mat_t result_mat)
static void from_fmpq_mat (fmpq_mat_t mat, DMatQQ &result_mat)

Private Attributes

fmpq_mat_t mMatrix

Detailed Description

RAII wrapper around FLINT's fmpq_mat_t for translating dense QQ-coefficient matrices between the engine and FLINT.

Note
AI-generated documentation. Verify against the source before relying on it.

Rational counterpart of FlintZZMat: bridges DMat<M2::ARingQQ> (GMP-backed) and FLINT's fmpq_mat_t via entrywise translation, frees the FLINT matrix in the destructor, and exposes value() so callers can hand the underlying fmpq_mat_struct* straight to FLINT's matrix routines.

Definition at line 114 of file dmat-qq-interface-flint.hpp.


The documentation for this class was generated from the following file: