From 668fd4e16adf68857251c6b9cdb6e9daba35142a Mon Sep 17 00:00:00 2001 From: kalmar Date: Wed, 21 Dec 2016 23:45:58 +0100 Subject: [PATCH] GroupAlgebraElements are longer than SDP matrix --- property(T).jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/property(T).jl b/property(T).jl index cd46ae1..ab24ae7 100644 --- a/property(T).jl +++ b/property(T).jl @@ -88,7 +88,7 @@ function create_SDP_problem(matrix_constraints, end function resulting_SOS{T<:Number, S<:Number}(sqrt_matrix::Array{T,2}, elt::GroupAlgebraElement{S}) - zzz = zeros(T, size(sqrt_matrix)[1]) + zzz = zeros(T, length(elt)) result::GroupAlgebraElement{T} = GroupAlgebraElement(zzz, elt.product_matrix) for i in 1:length(result) new_base = GroupAlgebraElement(sqrt_matrix[:,i], elt.product_matrix)