copy an rtable in external code - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : OpenMaple : VB Application Programming Interface : RTable Manipulation : OpenMaple/VB/RTableCopy

RTableCopy - copy an rtable in external code

Calling Sequence

RTableCopy(kv, rts, rt)




kernel handle returned by StartMaple



pointer to an RTableSettings structure



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 = 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

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam