FLINT3.7.0-dev

arf_init_set_shallow, arf_init_set_mag_shallow, arf_init_neg_shallow, arf_init_neg_mag_shallow

Synopsis#include <flint/arf.h>
void arf_init_set_shallow(arf_t z, const arf_t x)source
void arf_init_set_mag_shallow(arf_t y, const mag_t x)source
void arf_init_neg_shallow(arf_t z, const arf_t x)source
void arf_init_neg_mag_shallow(arf_t z, const mag_t x)source

Initialise the output as a shallow copy of x or of -x, sharing its limbs, without allocating memory.

The copy may only be used as a constant input, must not be cleared, and is invalid once x is modified or cleared. The mag_t versions make it possible to call arf functions on radii, as in arf_cmpabs_mag.

Cite this page

The FLINT team, “arf_init_set_shallow, arf_init_set_mag_shallow, arf_init_neg_shallow, arf_init_neg_mag_shallow (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_init_set_shallow.html (generated 2026-10-20).