We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A function for calculating elementwise distance between points might be useful. Something like this for example:
function elementwise_distance(M::AbstractPowerManifold, p, q) dists = similar(p, number_eltype(p), power_dimensions(M)) return elementwise_distance!(M, dists, p, q) end function elementwise_distance!(M::AbstractPowerManifold, dists, p, q) rep_size = representation_size(M.manifold) for i in get_iterator(M) dists[i...] = distance(M.manifold, _read(M, rep_size, p, i), _read(M, rep_size, q, i)) end return dists end
The text was updated successfully, but these errors were encountered:
This could indeed just be added to ManifoldsBase?
Sorry, something went wrong.
Yes, I'd also say that this should be in ManifoldsBase.jl.
No branches or pull requests
A function for calculating elementwise distance between points might be useful. Something like this for example:
The text was updated successfully, but these errors were encountered: