Skip to documentation
DocumentationAll documentsEnglish

LIBBN(3)

NAME

libbn - numerical computation library for BRL-CAD

On this page

SYNOPSIS

#include <bn.h>

Link with -lbn.

The public interface is organized across the headers included by bn.h, including bn/tol.h, bn/anim.h, bn/complex.h, bn/mat.h, bn/msr.h, bn/noise.h, bn/poly.h, bn/multipoly.h, bn/qmath.h, bn/rand.h, bn/randmt.h, bn/wavelet.h, bn/sobol.h, bn/str.h, bn/ulp.h, and bn/tabdata.h.

DESCRIPTION

LIBBN is BRL-CAD’s numerical computation library. It provides a broad assortment of numerical algorithms and computational routines, including pseudorandom number generation, vector and matrix math, quaternion math, complex arithmetic, polynomial synthetic division and root finding, noise generation, wavelet transforms, quasi-random (Sobol) sequences, tabulated data handling, and floating-point tolerance and unit-in-the-last -place utilities.

LIBBN sits above the utility library (libbu) and supplies the numerical foundation used throughout the rest of the BRL-CAD libraries. Strictly numerical algorithms that do not involve three-dimensional geometry concepts belong here, whereas generic geometry algorithms belong in libbg. Many core vector and matrix macros used by LIBBN are declared in vmath.h.

The complete API, including data structures and function signatures, is documented in the headers noted above and in the Doxygen-generated reference for the LIBBN module.

SEE ALSO

brlcad(1), libbu(3), libbg(3), librt(3)

The BRL-CAD Doxygen API reference provides the authoritative, up-to-date description of all public LIBBN routines.

AUTHOR

BRL-CAD Team

This software is Copyright (c) 2004-2026 United States Government as represented by the U.S. Army Research Laboratory.

BUG REPORTS

Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org