Skip to content

Error in UnionOfRows #39

@zickgraf

Description

@zickgraf

The following example throws an error:

julia> using MatricesForHomalg

julia> Q = HomalgFieldOfRationals();

julia> UnionOfRows( HomalgZeroMatrix( 5, 10, QQ ), HomalgIdentityMatrix( 10, QQ ), HomalgZeroMatrix( 5, 10, QQ ) )
ERROR: MethodError: Cannot `convert` an object of type 
  Vector{Rational{BigInt}} to an object of type 
  AbstractAlgebra.Generic.MatSpaceElem

Closest candidates are:
  convert(::Type{T}, ::T) where T
   @ Base Base.jl:84

Stacktrace:
 [1] UnionOfRows(R::AbstractAlgebra.Generic.MatSpaceElem{Rational{BigInt}}, nr_cols::AbstractAlgebra.Generic.MatSpaceElem{Rational{BigInt}}, list::AbstractAlgebra.Generic.MatSpaceElem{Rational{BigInt}})
   @ MatricesForHomalg ~/.julia/dev/MatricesForHomalg/src/MatricesForHomalg.jl:861
 [2] top-level scope
   @ REPL[3]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions