Skip to content

Commit 0926440

Browse files
committed
Add MatRep constructors
1 parent 19bd739 commit 0926440

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/matrep.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ MixedMatHRep(A::AbstractMatrix{T}, b::AbstractVector{T}, linset::IntSet) where T
4545

4646
MixedMatHRep(h::HRep{N,T}) where {N,T} = MixedMatHRep{N,T}(h)
4747

48+
MixedMatHRep{N, T}(hits::HIt{N, T}...) where {N, T} = MixedMatHRep{N, T, Matrix{T}}(hits...) # FIXME required by CDD and LRS tests
4849
function MixedMatHRep{N, T, MT}(hyperplanes::HyperPlaneIt{N, T}, halfspaces::HalfSpaceIt{N, T}) where {N, T, MT}
4950
nhyperplane = length(hyperplanes)
5051
nhrep = nhyperplane + length(halfspaces)
@@ -112,6 +113,7 @@ end
112113

113114
MixedMatVRep(v::VRep{N,T}) where {N,T} = MixedMatVRep{N,T}(v)
114115

116+
MixedMatVRep{N, T}(vits::VIt{N, T}...) where {N, T} = MixedMatVRep{N, T, Matrix{T}}(vits...) # FIXME required by CDD and LRS tests
115117
function MixedMatVRep{N, T, MT}(vits::VIt{N, T}...) where {N, T, MT}
116118
points, lines, rays = fillvits(FullDim{N}(), vits...)
117119
npoint = length(points)

0 commit comments

Comments
 (0)