Loading...
Searching...
No Matches
nut_Roots Struct Reference

The roots of a polynomial over a finite field, ignoring multiplicity. More...

#include <polynomial.h>

Data Fields

uint64_t len
 Number of roots, can be 0 if there are none.
 
uint64_t cap
 Maximum number of roots the roots buffer can currently store.
 
int64_t * roots
 Array of roots.
 

Detailed Description

The roots of a polynomial over a finite field, ignoring multiplicity.

Definition at line 38 of file polynomial.h.

Field Documentation

◆ len

uint64_t nut_Roots::len

Number of roots, can be 0 if there are none.

Definition at line 40 of file polynomial.h.

◆ cap

uint64_t nut_Roots::cap

Maximum number of roots the roots buffer can currently store.

Definition at line 42 of file polynomial.h.

◆ roots

int64_t* nut_Roots::roots

Array of roots.

Should be managed by nut_Roots_init, nut_Roots_destroy, and nut_Roots_ensure_cap.

Definition at line 45 of file polynomial.h.


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