RTableCopy - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RTableCopy

copy an rtable in external code

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RTableCopy(kv, rts, rt)

Parameters

kv

-

kernel handle returned by StartMaple

rts

-

pointer to an RTableSettings structure

rt

-

Maple rtable object

Description

• 

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.

Examples

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