This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef DOUBLE2_H | |
#define DOUBLE2_H | |
#include <cmath> | |
#include <ostream> | |
#include <initializer_list> | |
struct double2 { | |
union { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import mdtraj as md | |
import tqdm | |
def compute_distance_matrix(trajectory: md.Trajectory) -> np.ndarray: | |
"""Compute distance matrix. | |
""" | |
topology = trajectory.topology |