Skip to content

Calculate point based on vertex pairs #39

@ryanlevy

Description

@ryanlevy

We should add the following connivence function for calculate_p where instead of specifying indices in an ind_to_ind_value_map we can assume single site ind per vertex and just pass vertices
Similar to

function calculate_p(input, s::IndsNetworkMap)
  ndim = dimension(s)
  x = zeros(ndim)
  for (v, value) in input
    ind = only(s[v])
    d = dimension(s, ind)
    x[d] += index_value_to_scalar(s, ind, value - 1)
  end
  return x
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions