1
0
mirror of https://github.com/kalmarek/PropertyT.jl.git synced 2024-11-14 14:15:28 +01:00

GroupAlgebraElements are longer than SDP matrix

This commit is contained in:
kalmar 2016-12-21 23:45:58 +01:00
parent c2ba0c170c
commit 668fd4e16a

View File

@ -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)