class_docstr: Tangent space of M the space of `n x n` symmetric matrices, with fixed constant diagonal.
class_docstr_tok: ["Tangent","space","of","M","the","space","of","`","n","x","n","`","symmetric","matrices",",","with","fixed","constant","diagonal","."]
code: def _transform_general(self, x, f, event_ndims=None, **kwargs):
      basis = self.compute_basis(x)
      if event_ndims is None:
          event_ndims = 2
      return spaces.GeneralSpace(
          basis, computed_log_volume=0.0
      ).transform_general(x, f, event_ndims=event_ndims, **kwargs)
  
file_path: probability/tensorflow_probability/python/experimental/tangent_spaces/symmetric_matrix.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.experimental.tangent_spaces import spaces
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.math import linalg
label_desc: Use image node_id 2 for calling the ConstantDiagonalSymmetricMatrixSpace obj's underlying member method code with example usage: obj._transform_general(x, f, event_ndims) and returns: spaces