JuliaMath / JuliaMath/Polynomials.jl

A bug?

Open
#365 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
320
Forks
80
Avg merge
8h 46m
Merged PRs (30d)
3

Description

I started some cleaning of my tests for rational transfer functions. The following fails and was commented out for `RationalTransferFunctions`. It seems however, it doesn't work for `RationalFunctions` too.
```
julia> using LinearAlgebra

julia> using Polynomials

julia> s = RationalFunction(Polynomial([0,1],:s))
(s) // (1)

julia> [s^2 s/(s+1); I]
ERROR: ArgumentError: number of columns of each array must match (got (2, 1))
Stacktrace:
[1] _typed_vcat(#unused#::Type{Any}, A::Tuple{Matrix{Any}, Matrix{Any}})
@ Base .\abstractarray.jl:1553
[2] typed_vcat(::Type{Any}, ::Matrix{Any}, ::Matrix{Any})
@ Base .\abstractarray.jl:1567
[3] typed_hvcat(::Type{Any}, ::Tuple{Int64, Int64}, ::RationalFunction{Int64, :s, Polynomial{Int64, :s}}, ::Vararg{Any, N} where N)
@ Base .\abstractarray.jl:1957
[4] hvcat(::Tuple{Int64, Int64}, ::RationalFunction{Int64, :s, Polynomial{Int64, :s}}, ::Vararg{Any, N} where N)
@ Base .\abstractarray.jl:1932
[5] top-level scope
@ REPL[4]:1
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.