I/O
Global Variables
There are two non-constant global variables which can be set to customize the printed output of TPSs:
show_eps::Float64 = 0.0 # Print epsilon
show_sparse::Bool = false # Use sparse monomial print
show_eps
defines the value below which the absolute value of a monomial coefficient is NOT printed
show_sparse
specifies whether the sparse monomial format is used for printing. This is useful for GTPSAs containing a large number of variables and parameters
Examples
julia> d = Descriptor(100, 1, 10, 1)
Descriptor(NV=100, MO=1, NP=10, PO=1)
julia> x = @vars(d) # Doesn't fit on screen
100-element Vector{TPS64{Descriptor(NV=100, MO=1, NP=10, PO=1)}}: Index Coefficient Order Exponent -------------------------------------------------------------------------------- 1: 1.0000000000000000e+00 1 1 0 0 0 0 0 0 0 0 ⋯ -------------------------------------------------------------------------------- 2: 1.0000000000000000e+00 1 0 1 0 0 0 0 0 0 0 ⋯ -------------------------------------------------------------------------------- 3: 1.0000000000000000e+00 1 0 0 1 0 0 0 0 0 0 ⋯ -------------------------------------------------------------------------------- 4: 1.0000000000000000e+00 1 0 0 0 1 0 0 0 0 0 ⋯ -------------------------------------------------------------------------------- 5: 1.0000000000000000e+00 1 0 0 0 0 1 0 0 0 0 ⋯ -------------------------------------------------------------------------------- 6: 1.0000000000000000e+00 1 0 0 0 0 0 1 0 0 0 ⋯ -------------------------------------------------------------------------------- 7: 1.0000000000000000e+00 1 0 0 0 0 0 0 1 0 0 ⋯ -------------------------------------------------------------------------------- 8: 1.0000000000000000e+00 1 0 0 0 0 0 0 0 1 0 ⋯ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ ⋱ 102 columns and 93 rows omitted
julia> GTPSA.show_sparse = true;
julia> x
100-element Vector{TPS64{Descriptor(NV=100, MO=1, NP=10, PO=1)}}: Index Coefficient Order Monomial --------------------------------------------------- 1: 1.0000000000000000e+00 1 (Δx₁)¹ --------------------------------------------------- 2: 1.0000000000000000e+00 1 (Δx₂)¹ --------------------------------------------------- 3: 1.0000000000000000e+00 1 (Δx₃)¹ --------------------------------------------------- 4: 1.0000000000000000e+00 1 (Δx₄)¹ --------------------------------------------------- 5: 1.0000000000000000e+00 1 (Δx₅)¹ --------------------------------------------------- 6: 1.0000000000000000e+00 1 (Δx₆)¹ --------------------------------------------------- 7: 1.0000000000000000e+00 1 (Δx₇)¹ --------------------------------------------------- 8: 1.0000000000000000e+00 1 (Δx₈)¹ ⋮ ⋮ ⋮ ⋮ ⋮ ⋮ 93 rows omitted