bmad-sim / GTPSA.jl

Julia interface to the Generalised Truncated Power Series Algebra (GTPSA) library

Home Page:https://bmad-sim.github.io/GTPSA.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unit TPS constructor needed

DavidSagan opened this issue · comments

Instead of constructing unit TPS variables one at a time, it would be convenient to be able to create an array at once.  Something like:
x = unit_maps(descriptor)
So that x[1], x[2], ..., x[N] are unit maps for variables 1, 2, ..., N. With this, a TPS can be constructed like:
y = 2 + 4.3*x[1]^2 + x[3]

This has been implemented in vars, params, complexvars, and complexparams.