-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: old type Poly{T}
-- replacement?
#585
Comments
There is a Compat module that should make that available
…On Wed, Oct 2, 2024 at 11:55 AM Bernt Lie ***@***.***> wrote:
I just dug up some old code from 2020, or so, where I used the
Polynomials.jl package.
One of my constructs doesn't work any more,
## Routine to find the vector of column degrees#function col_deg(M::Matrix{Poly{T}}) where T<:Number
return maximum(length.(coeffs.(M)),dims=1)[:].-1end
Seems like Poly{T} doesn't exist any more.
- Has Poly{T} been replaced by another type?
—
Reply to this email directly, view it on GitHub
<#585>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TEZAW3MI2BN7GPJFOTZZO7K5AVCNFSM6AAAAABPHKMW72VHI2DSMVQWIX3LMV43ASLTON2WKOZSGU3DCMJTG44DMNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Thanks! That worked right away. |
Hm... I used a There used to be a |
Maybe it isn’t exported? Does Polynomials.coeffs work?
John Verzani
Chair, University Faculty Senate
https://www1.cuny.edu/sites/cunyufs/
and
Department of Mathematics
College of Staten Island, CUNY
…On Thu, Oct 3, 2024 at 12:15 PM Bernt Lie ***@***.***> wrote:
Hm... I used a coeffs function, but that doesn't seem to work with the
Poly type any more. So I'm switching to the modern version (Polynomial
type).
There used to be a poly function, but I cannot find that any more. Any
clue as to what it did/if there is a modern version?
—
Reply to this email directly, view it on GitHub
<#585 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TGSQWTK5FBG7PBTSH3ZZUKMZAVCNFSM6AAAAABPHKMW72VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJRGAZTMOJRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes, I've rewritten the code to use I then found that I had used both |
A silly question, unrelated to Polynomials.jl... I have defined a sys = MFD(N, D, div) where I then also defined some "functions" that can operate on function (p::MFD)(x::T) where T <: Union{Float16,Float32,Float64,BigFloat,Complex}
return ...
end This way, I could, e.g., write I can't seem to find this syntax in the Julia documentation... way back, someone referred to this as a functor , although I don't know whether it is a functor in the mathematical sense. Nowadays, there is a package "Functor.jl" which probably does something very different. Problem is: do you know how to find the documentation of this syntax? |
OK ... I guess I found some ideas at https://discourse.julialang.org/t/best-practice-for-storing-functions-in-a-struct/9654/11 . |
I just dug up some old code from 2020, or so, where I used the
Polynomials.jl
package.One of my constructs doesn't work any more,
Seems like
Poly{T}
doesn't exist any more.Poly{T}
been replaced by another type?The text was updated successfully, but these errors were encountered: