IMP logo
IMP Reference Guide  develop.266d43d110,2026/09/24
The Integrative Modeling Platform
IMP.jax.Space Class Reference

The space in which restraints are evaluated. More...

+ Inheritance diagram for IMP.jax.Space:

Detailed Description

The space in which restraints are evaluated.

See FreeSpace for the default unbounded space, or PeriodicSpace for a space that implements periodic boundary conditions.

Note
This class is only available in Python.

Definition at line 14 of file jax.py.

Public Member Functions

def distance
 If given an array of particle-particle vectors, return an array of distances. More...
 
def shift
 Shift r by dr and return new r. More...
 
def shift_indexes
 Modify r[indexes] in place by adding dr. More...
 

Member Function Documentation

def IMP.jax.Space.distance (   dr)

If given an array of particle-particle vectors, return an array of distances.

If given a single particle-particle vector, return a single distance.

Definition at line 18 of file jax.py.

def IMP.jax.Space.shift (   r,
  dr 
)

Shift r by dr and return new r.

Definition at line 24 of file jax.py.

def IMP.jax.Space.shift_indexes (   r,
  indexes,
  dr 
)

Modify r[indexes] in place by adding dr.

Definition at line 28 of file jax.py.


The documentation for this class was generated from the following file: