Example #1
0
// rmsdMemory creates reusable memory for use with RMSD calculation with
// suitable size for this fragment library. Only one goroutine can use the
// memory at a time.
func (lib *structureAtoms) rmsdMemory() structure.Memory {
	return structure.NewMemory(lib.FragSize)
}
Example #2
0
// rmsdMemory creates reusable memory for use with RMSD calculation with
// suitable size for this fragment library. Only one goroutine can use the
// memory at a time.
func (lib *StructureLibrary) rmsdMemory() structure.Memory {
	return structure.NewMemory(lib.FragmentSize)
}