11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

326 • Chapter 7: <strong>Advanced</strong> Connectivityvoid RTableSetIndFn( MKernelVector kv, RTableSettings *s,ALGEB indfn );void RTableSetType( MKernelVector kv, RTableSettings *s,M_INT id, char *name );RTableData RTableSelect( MKernelVector kv, ALGEB rt, M_INT*index );RTableData RTableAssign( MKernelVector kv, ALGEB rt, M_INT*index, RTableData val );void RTableSparseCompact( MKernelVector kv, ALGEB rt );NAG_INT* RTableSparseIndexRow( MKernelVector kv, ALGEB rt,M_INT dim );ALGEB RTableSparseIndexSort( MKernelVector kv, ALGEB rt,M_INT by_dim );void RTableSparseSetNumElems( MKernelVector kv, ALGEB rt,M_INT num );M_INT RTableSparseSize( MKernelVector kv, ALGEB rt );ALGEB RTableCopy( MKernelVector kv, RTableSettings *s,ALGEB rt );ALGEB RTableCopyImPart( MKernelVector kv, RTableSettings*s, ALGEB rt );ALGEB RTableCopyRealPart( MKernelVector kv, RTableSettings*s, ALGEB rt );ALGEB RTableZipReIm( MKernelVector kv, RTableSettings *s,ALGEB rt_re, ALGEB rt_im );Most Rtable access functions use the RtableSettings structure definedin mpltable.h. This struct corresponds directly to the options availableto the rtable constructor in Maple. 3RtableAppendAttribute appends the name attribute to the list ofattributes in the RtableSettings structure.RtableAppendIndFn appends the indexing function, infn to the listof indexing functions in the RtableSettings structure. Note that infnmust be a valid Maple name or table-reference. For example,RTableAppendIndFn(kv,&settings,ToMapleName(kv,"symmetric",TRUE));RTableAppendIndFn(kv,&settings,EvalMapleStatement(kv,"triangular[upper]"));3 For more information, see ?rtable.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!