Macaulay2
»
Documentation
Packages
»
ForeignFunctions
::
Index
next | previous | forward | backward | up |
index
|
toc
ForeignFunctions : Index
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
* Pointer = Thing
-- assign value to object at address
* voidstar = Thing
-- assign value to object at address
address
-- pointer to type or object
address(ForeignObject)
-- pointer to type or object
address(ForeignType)
-- pointer to type or object
Atomic
-- allocate memory using the garbage collector
char'
-- foreign integer type
charstar
-- foreign string type
charstarstar
-- foreign type for NULL-terminated arrays of pointers
charstarstar _ ZZ
-- foreign type for NULL-terminated arrays of pointers
charstarstar _ ZZ = Thing
-- foreign type for NULL-terminated arrays of pointers
describe(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
describe(SharedLibrary)
-- a shared library
double
-- foreign real type
expression(double)
-- get the value of a foreign object as a Macaulay2 thing
expression(float)
-- get the value of a foreign object as a Macaulay2 thing
expression(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
expression(SharedLibrary)
-- a shared library
fast Fourier transform example
-- fast Fourier transforms using foreign function calls to the FFTW library
float
-- foreign real type
ForeignArrayType
-- foreign array type
foreignArrayType
-- construct a foreign array type
ForeignArrayType VisibleList
-- cast a Macaulay2 list to a foreign array
foreignArrayType(ForeignType,ZZ)
-- construct a foreign array type
foreignArrayType(String,ForeignType,ZZ)
-- construct a foreign array type
ForeignFunction
-- construct a foreign function
foreignFunction
-- construct a foreign function
foreignFunction(...,Variadic=>...)
-- construct a foreign function
foreignFunction(Pointer,String,ForeignType,VisibleList)
-- construct a foreign function
foreignFunction(SharedLibrary,String,ForeignType,ForeignType)
-- construct a foreign function
foreignFunction(SharedLibrary,String,ForeignType,VisibleList)
-- construct a foreign function
foreignFunction(String,ForeignType,ForeignType)
-- construct a foreign function
foreignFunction(String,ForeignType,VisibleList)
-- construct a foreign function
ForeignFunctions
-- foreign function interface
ForeignIntegerType
-- foreign integer type
ForeignIntegerType Number
-- cast a Macaulay2 number to a foreign integer object
ForeignObject
-- foreign object
foreignObject
-- construct a foreign object
foreignObject(ForeignObject)
-- construct a foreign object
foreignObject(Number)
-- construct a foreign object
foreignObject(Pointer)
-- construct a foreign object
foreignObject(String)
-- construct a foreign object
foreignObject(VisibleList)
-- construct a foreign object
foreignObject(ZZ)
-- construct a foreign object
ForeignPointerArrayType
-- foreign type for NULL-terminated arrays of pointers
foreignPointerArrayType
-- construct a foreign pointer array type
ForeignPointerArrayType VisibleList
-- cast a Macaulay2 list to a foreign pointer array
foreignPointerArrayType(ForeignType)
-- construct a foreign pointer array type
foreignPointerArrayType(String,ForeignType)
-- construct a foreign pointer array type
ForeignPointerType
-- foreign pointer type
ForeignPointerType Pointer
-- cast a Macaulay2 pointer to a foreign pointer
ForeignRealType
-- foreign real type
ForeignRealType Number
-- cast a Macaulay2 number to a foreign real object
ForeignRealType RRi
-- cast a Macaulay2 number to a foreign real object
ForeignStringType
-- foreign string type
ForeignStringType String
-- cast a Macaulay2 string to a foreign string
ForeignStructType
-- foreign struct type
foreignStructType
-- construct a foreign struct type
ForeignStructType ForeignObject
-- cast a foreign object to the given foreign type
ForeignStructType HashTable
-- cast a hash table to a foreign struct
ForeignStructType VisibleList
-- cast a hash table to a foreign struct
foreignStructType(String,Option)
-- construct a foreign struct type
foreignStructType(String,VisibleList)
-- construct a foreign struct type
foreignSymbol
-- get a foreign symbol
foreignSymbol(SharedLibrary,String,ForeignType)
-- get a foreign symbol
foreignSymbol(String,ForeignType)
-- get a foreign symbol
ForeignType
-- abstract foreign type
ForeignType * voidstar
-- dereference a voidstar object
ForeignType * ZZ
-- construct a foreign array type
ForeignType ForeignObject
-- cast a foreign object to the given foreign type
ForeignType Pointer
-- dereference a pointer
ForeignUnionType
-- foreign union type
foreignUnionType
-- construct a foreign union type
ForeignUnionType Thing
-- cast a thing to a foreign union
foreignUnionType(String,Option)
-- construct a foreign union type
foreignUnionType(String,VisibleList)
-- construct a foreign union type
ForeignVoidType
-- foreign void type
ForeignVoidType Nothing
-- foreign void type
general linear model example
-- constrained least squares using foreign function calls to the LAPACK library
getMemory
-- allocate memory using the garbage collector
getMemory(...,Atomic=>...)
-- allocate memory using the garbage collector
getMemory(ForeignType)
-- allocate memory using the garbage collector
getMemory(ForeignVoidType)
-- allocate memory using the garbage collector
getMemory(ZZ)
-- allocate memory using the garbage collector
int
-- foreign integer type
int8
-- foreign integer type
int16
-- foreign integer type
int32
-- foreign integer type
int64
-- foreign integer type
iterator(charstarstar)
-- foreign type for NULL-terminated arrays of pointers
iterator(voidstarstar)
-- foreign type for NULL-terminated arrays of pointers
just-in-time compilation example
-- using foreign function calls for computing Fibonacci numbers using JIT
length(charstarstar)
-- foreign type for NULL-terminated arrays of pointers
length(voidstarstar)
-- foreign type for NULL-terminated arrays of pointers
long
-- foreign integer type
mpfrT
-- MPFR multiple-precision floating-point type
mpzT
-- GMP arbitrary-precision integer type
net(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
net(ForeignType)
-- abstract foreign type
net(SharedLibrary)
-- a shared library
new charstarstar from VisibleList
-- cast a Macaulay2 list to a foreign pointer array
new double from RR
-- cast a Macaulay2 number to a foreign real object
new float from RR
-- cast a Macaulay2 number to a foreign real object
new int8 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new int16 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new int32 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new int64 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new mpfrT from RR
-- MPFR multiple-precision floating-point type
new mpzT from ZZ
-- GMP arbitrary-precision integer type
new uint8 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new uint16 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new uint32 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new uint64 from ZZ
-- cast a Macaulay2 number to a foreign integer object
new voidstarstar from VisibleList
-- cast a Macaulay2 list to a foreign pointer array
nullPointer
-- the null pointer
openSharedLibrary
-- open a shared library
openSharedLibrary(...,FileName=>...)
-- open a shared library
openSharedLibrary(String)
-- open a shared library
Pointer
-- pointer to memory address
Pointer + ZZ
-- pointer to memory address
Pointer - ZZ
-- pointer to memory address
registerFinalizer(ForeignObject,Function)
-- register a finalizer for a foreign object
SharedLibrary
-- a shared library
short
-- foreign integer type
size(ForeignType)
-- size of a foreign type
texMath(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
texMath(SharedLibrary)
-- a shared library
toExternalString(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
toExternalString(SharedLibrary)
-- a shared library
toString(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
toString(SharedLibrary)
-- a shared library
uchar
-- foreign integer type
uint
-- foreign integer type
uint8
-- foreign integer type
uint16
-- foreign integer type
uint32
-- foreign integer type
uint64
-- foreign integer type
ulong
-- foreign integer type
ushort
-- foreign integer type
value(charstar)
-- get the value of a foreign object as a Macaulay2 thing
value(charstarstar)
-- get the value of a foreign object as a Macaulay2 thing
value(double)
-- get the value of a foreign object as a Macaulay2 thing
value(float)
-- get the value of a foreign object as a Macaulay2 thing
value(ForeignObject)
-- get the value of a foreign object as a Macaulay2 thing
value(int8)
-- get the value of a foreign object as a Macaulay2 thing
value(int16)
-- get the value of a foreign object as a Macaulay2 thing
value(int32)
-- get the value of a foreign object as a Macaulay2 thing
value(int64)
-- get the value of a foreign object as a Macaulay2 thing
value(mpfrT)
-- MPFR multiple-precision floating-point type
value(mpzT)
-- GMP arbitrary-precision integer type
value(uint8)
-- get the value of a foreign object as a Macaulay2 thing
value(uint16)
-- get the value of a foreign object as a Macaulay2 thing
value(uint32)
-- get the value of a foreign object as a Macaulay2 thing
value(uint64)
-- get the value of a foreign object as a Macaulay2 thing
value(voidstar)
-- get the value of a foreign object as a Macaulay2 thing
value(voidstarstar)
-- get the value of a foreign object as a Macaulay2 thing
Variadic
-- construct a foreign function
void
-- foreign void type
voidstar
-- foreign pointer type
voidstarstar
-- foreign type for NULL-terminated arrays of pointers
voidstarstar _ ZZ
-- foreign type for NULL-terminated arrays of pointers
voidstarstar _ ZZ = Thing
-- foreign type for NULL-terminated arrays of pointers
ZZ * ForeignType
-- construct a foreign array type
ZZ + Pointer
-- pointer to memory address