if point_type == "matrix":
// TODO (ninamiolane): Vectorize this more efficiently
tangent_vec_a = gs.to_ndarray(tangent_vec_a, to_ndim=2)
tangent_vec_a = gs.to_ndarray(tangent_vec_a, to_ndim=3)
tangent_vec_b = gs.to_ndarray(tangent_vec_b, to_ndim=2)
tangent_vec_b = gs.to_ndarray(tangent_vec_b, to_ndim=3)
base_point = gs.to_ndarray(base_point, to_ndim=2)
After Change
Inner-product of the two tangent vectors.
if base_point is None:
base_point = gs.array([[None]] * self.n_metrics)
if point_type is None:
point_type = self.default_point_type
geomstats.errors.check_parameter_accepted_values(