class_docstr: A `tf.linalg.LinearOperator` representing a kernel covariance matrix.
class_docstr_tok: ["A","`","tf.linalg.LinearOperator","`","representing","a","kernel","covariance","matrix","."]
docstr: Gets a row from the dense operator.
  
  Args:
    index: The index (indices) of the row[s] to get, may be scalar or up to
      batch shape. Suggest int64 dtype if using with GPU.
  
  Returns:
    rows: Row[s] of the matrix, with shape `(...batch_shape..., num_cols)`.
      Effectively the same as `operator.to_dense()[..., index, :]` for a
      scalar `index`, analogous to gather for non-scalar.
docstr_tok: ["Gets","a","row","from","the","dense","operator",".","Args",":","index",":","The","index","(","indices",")","of","the","row","[","s","]","to","get",",","may","be","scalar","or","up","to","batch","shape",".","Suggest","int64","dtype","if","using","with","GPU",".","Returns",":","rows",":","Row","[","s","]","of","the","matrix",",","with","shape","`","(","...","batch_shape","...",",","num_cols",")","`",".","Effectively","the","same","as","`","operator.to_dense","(",")","[","...",",","index",",",":","]","`","for","a","scalar","`","index","`",",","analogous","to","gather","for","non-scalar","."]
code: def row(self, index):
      """Gets a row from the dense operator.
  
      Args:
        index: The index (indices) of the row[s] to get, may be scalar or up to
          batch shape. Suggest int64 dtype if using with GPU.
  
      Returns:
        rows: Row[s] of the matrix, with shape `(...batch_shape..., num_cols)`.
          Effectively the same as `operator.to_dense()[..., index, :]` for a
          scalar `index`, analogous to gather for non-scalar.
      """
      index = tf.convert_to_tensor(index, dtype_hint=tf.int64)
      x1, x2, axis, kernel = self._x1_x2_axis_kernel()
      batch_shp = tf.broadcast_dynamic_shape(
          tf.shape(x1)[:axis], tf.shape(index)
      )
      x1 = tf.broadcast_to(
          x1, tf.concat([batch_shp, tf.shape(x1)[axis:]], axis=0)
      )
      x1_row = tf.broadcast_to(index, tf.shape(x1)[:axis])
      x1 = tf.gather(
          x1, x1_row[..., tf.newaxis], batch_dims=len(x1.shape[:axis])
      )
      return kernel.matrix(x1, x2)[..., 0, :]
  
imports: import functools
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import tensor_util
  from tensorflow.python.ops import control_flow_util
label_desc: Use image node_id 13 for calling the LinearOperatorPSDKernel obj's underlying member method code with example usage: obj.row(index) and returns: kernel