Skip to content

Commit

Permalink
Merge pull request #78 from bmad-sim/dev-methods
Browse files Browse the repository at this point in the history
Dev methods
  • Loading branch information
mattsignorelli authored Feb 4, 2024
2 parents 8fc6b85 + e14cafd commit ccdb10f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/man/mono.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ m = mono(..., use=descriptor)

## Examples
```@repl desc
using GTPSA #hide
using GTPSA; GTPSA.show_sparse = false;#hide
d1 = Descriptor(3, 15, 2, 15); # 3 vars, 2 params, all to order 15
x1 = mono(1)
k1 = mono(param=1)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/monoindex.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A particular monomial can be indexed by specifying the orders of each variable a

### Examples
```@repl
using GTPSA #hide
using GTPSA; GTPSA.show_sparse = false; #hide
d = Descriptor(2, 6, 3, 6); # 2 variables, 3 parameters all to 6th order
x = vars(d);
k = params(d);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ f = par(tps, vars_sparse_mono, params=params_sparse_mono)
### Examples

```@repl par
using GTPSA; #hide
using GTPSA; GTPSA.show_sparse = false; #hide
d = Descriptor(5, 10, 2, 10);
x = vars(d);
k = params(d);
Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/tps.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ ct = ComplexTPS()

## Examples
```@repl desc
using GTPSA #hide
using GTPSA; GTPSA.show_sparse = false; #hide
d1 = Descriptor(2, 10);
t1_1 = TPS()
t1_2 = TPS(5)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/man/varsparams.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ k = complexparams()

## Examples
```@repl desc
using GTPSA #hide
using GTPSA; GTPSA.show_sparse = false; #hide
d1 = Descriptor(3, 5, 2, 5); # 3 vars, 2 params, all to order 5
x1 = vars()
k1 = params()
Expand Down
4 changes: 2 additions & 2 deletions docs/src/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ using GTPSA, BenchmarkTools
d = Descriptor(3, 5);
x = vars(d);
@btime ``x[1]^3*sin(``x[2])/log(2+``x[3])-exp(``x[1]*``x[2])*im;
@btime $x[1]^3*sin($x[2])/log(2+$x[3])-exp($x[1]*$x[2])*im;
@btime @FastGTPSA ``x[1]^3*sin(``x[2])/log(2+``x[3])-exp(``x[1]*``x[2])*im;
@btime @FastGTPSA $x[1]^3*sin($x[2])/log(2+$x[3])-exp($x[1]*$x[2])*im;
```

The advantages of using the macro become especially apparent in more complicated systems, for example in `benchmark/taylormap.jl`.
Expand Down

0 comments on commit ccdb10f

Please sign in to comment.