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: The matrix with F_CONTIGUOUS set we pass in, we should get back with the third
  dimension doubled and the fifth forgotten.
docstr_tok: ["The","matrix","with","F_CONTIGUOUS","set","we","pass","in",",","we","should","get","back","with","the","third","dimension","doubled","and","the","fifth","forgotten","."]
code: def testNumpyFContiguousMatrixForceCopy(self):
      """
      The matrix with F_CONTIGUOUS set we pass in, we should get back with the third
      dimension doubled and the fifth forgotten.
      """
      x = np.array(np.random.rand(100, 5), order="F")
  
      output = test_python_binding(
          string_in="hello",
          int_in=12,
          double_in=4.0,
          mat_req_in=[[1.0]],
          col_req_in=[1.0],
          matrix_in=x,
          copy_all_inputs=True,
      )
  
      self.assertEqual(output["matrix_out"].shape[0], 100)
      self.assertEqual(output["matrix_out"].shape[1], 4)
      self.assertEqual(output["matrix_out"].dtype, np.double)
      for i in [0, 1, 3]:
          for j in range(100):
              self.assertEqual(x[j, i], output["matrix_out"][j, i])
  
      for j in range(100):
          self.assertEqual(2 * x[j, 2], output["matrix_out"][j, 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 10 for calling the TestPythonBinding obj's underlying member method code with example usage: obj.testNumpyFContiguousMatrixForceCopy() without return types