class_docstr: This class tests the basic functionality of the Python bindings.
class_docstr_tok: ["This","class","tests","the","basic","functionality","of","the","Python","bindings","."]
docstr: Test that we can pass one dimension matrix from matrix_in
docstr_tok: ["Test","that","we","can","pass","one","dimension","matrix","from","matrix_in"]
code: def testOneDimensionNumpyMatrix(self):
      """
      Test that we can pass one dimension matrix from matrix_in
      """
      x = np.random.rand(100)
      z = copy.deepcopy(x)
  
      output = test_python_binding(
          string_in="hello",
          int_in=12,
          double_in=4.0,
          mat_req_in=[[1.0]],
          col_req_in=[1.0],
          smatrix_in=z,
      )
  
      self.assertEqual(output["smatrix_out"].shape[0], 100)
      self.assertEqual(output["smatrix_out"].dtype, np.double)
  
      for i in range(100):
          self.assertEqual(output["smatrix_out"][i, 0], x[i] * 2)
  
imports: import unittest
  import pandas
  import numpy
  import copy
  from mlpack.test_python_binding import test_python_binding
label_desc: Use image node_id 42 for calling the TestPythonBinding obj's underlying member method code with example usage: obj.testOneDimensionNumpyMatrix() without return types