JuliaAlgebra / DynamicPolynomials.jl

Multivariate polynomials implementation of commutative and non-commutative variables
Other
60 stars 21 forks source link

Change @polyvar macro to take arbitrary number of index sets #35

Closed saschatimme closed 6 years ago

saschatimme commented 6 years ago

This extends the capabilities of the @polyvar macro to construct arbitrary variable tensors.

julia> @polyvar A[1:2, 1:5, 1:3];
julia> A
2×5×3 Array{PolyVar{true},3}:
[:, :, 1] =
 A1_1_1  A1_2_1  A1_3_1  A1_4_1  A1_5_1
 A2_1_1  A2_2_1  A2_3_1  A2_4_1  A2_5_1

[:, :, 2] =
 A1_1_2  A1_2_2  A1_3_2  A1_4_2  A1_5_2
 A2_1_2  A2_2_2  A2_3_2  A2_4_2  A2_5_2

[:, :, 3] =
 A1_1_3  A1_2_3  A1_3_3  A1_4_3  A1_5_3
 A2_1_3  A2_2_3  A2_3_3  A2_4_3  A2_5_3
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.002%) to 99.638% when pulling 48f3597a0e87bac40abf0d24711d56417a221e96 on polyvar into 0dbae9e7c0712502e191bf98b7fb23dac2531d49 on master.

codecov-io commented 6 years ago

Codecov Report

Merging #35 into master will decrease coverage by <.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   99.64%   99.63%   -0.01%     
==========================================
  Files          14       14              
  Lines         556      553       -3     
==========================================
- Hits          554      551       -3     
  Misses          2        2
Impacted Files Coverage Δ
src/var.jl 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0dbae9e...48f3597. Read the comment docs.