Skip to content

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
samwaseda committed Jan 20, 2021
1 parent db6ad6f commit 07cef0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyiron_atomistics/atomistics/master/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_elastic_tensor_by_orientation(orientation, elastic_tensor):
orientation (numpy.ndarray): 3x3 orthogonal orientation (no need to be orthonormal)
elastic_tensor (numpy.ndarray): 6x6 elastic tensor
Returns:
elastic_tensor in a given orientation
(numpy.ndarray) 6x6 elastic_tensor in a given orientation
"""
orientation = np.einsum('ij,i->ij', orientation, 1/np.linalg.norm(orientation, axis=-1))
if not np.isclose(np.linalg.det(orientation), 1):
Expand Down

0 comments on commit 07cef0b

Please sign in to comment.