From 84ee72ce502b83dc58c645479140d34c68e2bbde Mon Sep 17 00:00:00 2001 From: mattsignorelli Date: Mon, 29 Apr 2024 14:35:34 -0400 Subject: [PATCH] random TPS generator --- src/operators.jl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/operators.jl b/src/operators.jl index fd8c45dc..29039425 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -57,6 +57,11 @@ for (fname, felt) in ((:zeros, :zero), (:ones, :one)) end # --- rand --- +""" + rand(::Type{T}; use::Union{Descriptor,TPS,ComplexTPS}=GTPSA.desc_current) where {T<:Union{TPS,ComplexTPS}} + +Generate a `TPS`/`ComplexTPS` with all random coefficients. +""" function rand(::Type{T}; use::Union{Descriptor,TPS,ComplexTPS}=GTPSA.desc_current) where {T<:Union{TPS,ComplexTPS}} t = T(use=use) len = length(t)