Macaulay2 » Documentation
Packages » ForeignFunctions > SharedLibrary
next | previous | forward | backward | up | index | toc

SharedLibrary -- a shared library

Description

A shared library that could be used to load foreign functions. Each shared library object consists of a pointer to a handle for the library and a string that is used by describe, expression, net, texMath, toExternalString, and toString.

i1 : mpfr = openSharedLibrary "mpfr"

o1 = mpfr

o1 : SharedLibrary
i2 : peek mpfr

o2 = SharedLibrary{0x7698a8d6b550, mpfr}

Functions and methods returning a shared library:

Methods that use a shared library:

For the programmer

The object SharedLibrary is a self initializing type, with ancestor classes BasicList < Thing.

Menu