(data, dim)
return points
dihedral symmetry d4.
dihedral symmetry d4.
dihedral symmetry d4 .
def _d4_ab(data, dim):
    """dihedral symmetry d4."""
    s, t = np.array(data)
    points = np.array(
        [[+s, +t], [-s, +t], [+s, -t], [-s, -t], [+t, +s], [-t, +s], [+t, -s], [-t, -s]]
    )
    points = np.moveaxis(points, 0, 1)
    return points
def _d4_ab ( data , dim ) : s , t = np . array ( data ) points = np . array ( [ [ + s , + t ] , [ - s , + t ] , [ + s , - t ] , [ - s , - t ] , [ + t , + s ] , [ - t , + s ] , [ + t , - s ] , [ - t , - s ] ] ) points = np . moveaxis ( points , 0 , 1 ) return points