RTableCopy
copy an rtable in external code
Calling Sequence
Parameters
Description
Examples
RTableCopy(kv, rts, rt)
kv
-
kernel handle returned by StartMaple
rts
pointer to an RTableSettings structure
rt
Maple rtable object
This function is part of the OpenMaple interface to Microsoft Visual Basic.
The RTableCopy function creates a new rtable with the data copied from the given rtable, rt, and the settings specified in rts.
After calling RTableCopy, rts.num_dimensions is updated to the match the copied rtable. It is not possible to change the number of dimensions setting for the target rtable.
Public Sub TestRTableCopy(ByVal kv As Long)
Dim rts As RTableSettings
Dim rt As Long
' original rtable
rt = EvalMapleStatement(kv, "Matrix([[1,2,3],[4,5,6]]);")
' create the copy with dense storage and float[8] datatype /
RTableGetDefaults kv, rts
rts.data_type = RTABLE_FLOAT64
rts.storage = RTABLE_RECT
rt = RTableCopy(kv, rts, rt)
MapleALGEB_Printf1 kv, "result = %a", rt
End Sub
See Also
OpenMaple
OpenMaple/VB/API
OpenMaple/VB/Examples
rtable
trademarks
Download Help Document