Frobby  0.9.5
Classes | Functions
LibTest.h File Reference
#include "frobby.h"
#include "BigIdeal.h"
#include "BigPolynomial.h"
#include <vector>

Go to the source code of this file.

Classes

class  LibIdealConsumer
 Records library interface output into a BigIdeal. More...
 
class  LibIdealsConsumer
 Records library interface output into a vector of BigIdeals. More...
 
class  LibPolynomialConsumer
 Records library interface output into a BigPolynomial. More...
 

Functions

Frobby::Ideal toLibIdeal (const BigIdeal &ideal)
 Returns a library interface ideal that corresponds to the parameter ideal. More...
 
const mpz_t * castLibArray (const vector< mpz_class > &vect)
 Returns a pointer to an array of mpt_t that represents the entries in the mpz_class. More...
 

Function Documentation

◆ castLibArray()

const mpz_t* castLibArray ( const vector< mpz_class > &  vect)

Returns a pointer to an array of mpt_t that represents the entries in the mpz_class.

The array is actually just the memory of the vector, so the life time of the array is until the vector deallocates or reallocates its array.

Definition at line 41 of file LibTest.cpp.

◆ toLibIdeal()

Frobby::Ideal toLibIdeal ( const BigIdeal ideal)

Returns a library interface ideal that corresponds to the parameter ideal.

Definition at line 26 of file LibTest.cpp.