class_docstr: Rotation in 3 dimensions.
class_docstr_tok: ["Rotation","in","3","dimensions","."]
docstr: Initialize from rotation matrix.
docstr_tok: ["Initialize","from","rotation","matrix","."]
code: def from_matrix(cls, matrix: jax.Array):
      """Initialize from rotation matrix."""
      return cls(_from_matrix(matrix))
  
imports: from __future__ import annotations
  import functools
  import re
  import typing
  import scipy.spatial.transform
  import jax
  import jax.numpy
  from jax._src.numpy.util import _wraps
label_desc: Use image node_id 3 for calling the Rotation obj's underlying member method code with example usage: obj.from_matrix(cls, matrix) and returns: cls