WSAggregate EΒΆ
jwsagg.spad line 1 [edit on github]
E: WSObject
Julia Wolfram Symbolic aggregate (WS list) using the MathLink Julia package.
- #: % -> WSInteger
\#(agg)returns the length ofagg. 0 if it is a scalar, an index for example.
- accumulate: % -> % if E has WSNumber
accumulate(agg)
- append: (%, E) -> %
append(l, elt)appends elt to the listl.
- coerce: % -> JLObject
from JLObjectType
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- coerce: % -> WSExpression
coerce(agg)coercesaggto a WSExpression.
- coerce: List E -> %
coerce(list)tries to coercelistas a WSAggregate.
- convert: % -> String
from ConvertibleTo String
- delete: (%, WSList WSInteger) -> %
delete(l, inds)deletes element(s) of the listlat index(es) inds.
- differences: % -> % if E has WSNumber
differences(agg)
- elt: (%, Integer) -> E
elt(agg,i)returns thei-th element.
- extract: (%, WSExpression) -> %
extract(agg, parts)extracts parts ofagg.
- first: % -> E
first(agg)returns the first element ofagg.
- insert: (%, E, WSInteger) -> %
insert(l, elt, ind)insertseltto the listlat index ind.
- intersection: (%, %) -> %
intersection(agg1, agg2)is the intersection operator.
- jlAbout: % -> Void
from JLObjectType
- jlApply: (String, %) -> %
from JLObjectType
- jlApply: (String, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %, %) -> %
from JLObjectType
- jlApply: (String, %, %, %, %, %) -> %
from JLObjectType
- jlDisplay: % -> Void
from JLObjectType
- jlDump: JLObject -> Void
from JLObjectType
- jlId: % -> JLInt64
from JLObjectType
- jlObject: () -> String
from JLObjectType
- jlRef: % -> SExpression
from JLObjectType
- jlref: String -> %
from JLObjectType
- jlSymbolic: % -> String
from WSObject
- jlType: % -> String
from JLObjectType
- join: (%, %) -> %
join(agg1, agg2)join the two aggreagtesagg1andagg2.
- jWSAggregate: List E -> %
jWSAggregate(list)constructs agg as a WSAggregate.
- jWSInterpret: (String, String) -> %
from WSObject
- jWSInterpret: (String, String, String) -> %
from WSObject
- jWSInterpret: String -> %
from WSObject
- last: % -> E
last(agg)returns the last element ofagg.
- latex: % -> String
from SetCategory
- length: % -> WSInteger
length(agg)returns the length ofagg. 0 if it is a scalar, an index for example.
- mutable?: % -> Boolean
from JLObjectType
- nothing?: % -> Boolean
from JLObjectType
- numeric: % -> WSExpression
from WSObject
- numeric: (%, PositiveInteger) -> WSExpression
from WSObject
- part: (%, WSInteger) -> E
part(agg,i)returns thei-th element.
- prepend: (%, E) -> %
prepend(l, elt)prepends elt to the listl.
- qelt: (%, Integer) -> E
qelt(agg,i)returns thei-th element. No checks are done at the FriCAS level.
- qsetelt!: (%, Integer, E) -> %
qsetelt!(l,i,elem)returnslwithi-th element replaced byelem. No checks are done at the FriCAS level.
- qsetelt: (%, Integer, E) -> %
qsetelt(l,i,elem)returns a copy oflwithi-th element replaced by the elementelem. No checks are done at the FriCAS level.
- removeDuplicates: % -> %
removeDuplicates(agg)removes duplicate elements.
- replacePart: (%, %) -> %
replacePart(expr, part)replacesexprusing rule(s) expressing position(s).
- rest: % -> %
rest(agg)returnsaggwithout the first element.
- reverse: % -> %
reverse(agg)reverses the elements ofagg.
- reverse: (%, WSInteger) -> %
reverse(agg, lev)reverses the elements ofaggat level lev.
- riffle: (%, %) -> %
riffle(agg, elts)riffles (interleaves) element(s) elts i.e. insert them.
- riffle: (%, %, %) -> %
riffle(agg, elts, inds)riffles (interleaves) element(s)eltsi.e. insert them. If inds is {min, max,n} insert at position min, min+n, min+2n..max.
- setelt!: (%, Integer, E) -> %
setelt!(l,i,elem)returnslwithi-th element replaced byelem.
- setelt: (%, Integer, E) -> %
setelt(l,i,elem)returns a copy oflwithi-th element replaced by the elementelem.
- setIntersection: (%, %) -> %
setIntersection(agg1, agg2)is the intersection set operator.
- sort: % -> %
sort(agg)returnsaggin sorted order. For complex numbers, sorts them by their real part first.
- sorted?: % -> Boolean
sorted?(agg)checks whetheraggis sorted or not.
- take: (%, Integer) -> %
take(l,i)returns the firsti-th elements.
- total: % -> E if E has WSNumber
total(agg)returns the sum of the elements inagg.
- union: (%, %) -> %
union(agg1, agg2)is the union set operator. Elements are sorted on output.