class_docstr: Tests for CoulombMatrix.
class_docstr_tok: ["Tests","for","CoulombMatrix","."]
docstr: Test upper triangular CoulombMatrix.
docstr_tok: ["Test","upper","triangular","CoulombMatrix","."]
code: def test_upper_tri_coulomb_matrix(self):
      """
      Test upper triangular CoulombMatrix.
      """
      f = CoulombMatrix(self.num_atoms, upper_tri=True)
      size = np.triu_indices(self.num_atoms)[0].size
      rval = f([self.mol_with_no_conf])
      assert rval.shape == (1, size)
      rval = f([self.mol_with_one_conf])
      assert rval.shape == (1, size)
      rval = f([self.mol_with_multi_conf])
      assert rval.shape == (1, self.num_confs, size)
  
file_path: deepchem/deepchem/feat/tests/test_coulomb_matrices.py
imports: import numpy
  import unittest
  from deepchem.feat import CoulombMatrix, CoulombMatrixEig
  from deepchem.utils import conformers
label_desc: Use image node_id 4 for calling the TestCoulombMatrix obj's underlying member method code with example usage: obj.test_upper_tri_coulomb_matrix() without return types