class_docstr: Tests regularization/postprocessing methods.
class_docstr_tok: ["Tests","regularization\/postprocessing","methods","."]
docstr: Test thresholding, displacing and flipping matrix to do nothing on PSD matrices.
docstr_tok: ["Test","thresholding",",","displacing","and","flipping","matrix","to","do","nothing","on","PSD","matrices","."]
code: def test_do_nothing_on_non_negative(self, input):
      """Test thresholding, displacing and flipping matrix to do nothing on PSD matrices."""
      assert np.allclose(kern.threshold_matrix(input), input)
      assert np.allclose(kern.displace_matrix(input), input)
      assert np.allclose(kern.flip_matrix(input), input)
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestRegularization obj's underlying member method code with example usage: obj.test_do_nothing_on_non_negative(input) without return types