Currently, the code for both EuclideanVector and EuclideanMatrix treats the zero-correlation and the 1-correlation case by if-clauses, respectively, e.g.,
function filter(φ::EuclideanMatrix, grp::O3, bb::Array)
if length(bb) == 0 # no zero-correlations allowed
return false
end
if length(bb) == 1 #MS: this line could be removed, I think...
return true
end
Can we remove either or both of these if-clauses?
How would we correctly implement coco_init(::EuclideanMatrix{CT}) and coco_init(::EuclideanVector{CT}), e.g.,
coco_init(::EuclideanMatrix{CT}) where {CT<:Real} = [EuclideanMatrix(SMatrix{3,3,Complex{CT},9}([1.0,0,0,0,1.0,0,0,0,1.0]))]
Currently, the code for both
EuclideanVector
andEuclideanMatrix
treats the zero-correlation and the 1-correlation case by if-clauses, respectively, e.g.,Can we remove either or both of these if-clauses?
How would we correctly implement
coco_init(::EuclideanMatrix{CT})
andcoco_init(::EuclideanVector{CT})
, e.g.,? Are these actually needed?