Every line of 'python ravel' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
291 def ravel(self): 292 """ Return a contiguous flattened array. 293 294 A 1-D array, containing the elements of the input, is returned. A copy is made only if needed. 295 296 Returns 297 ------- 298 y : ndarray 299 A copy or view of the array, flattened to one dimension. 300 """ 301 return self.flatten(always_copy=False)
22 def test_ravel_self(self,a): 23 cmd = "res = a[0].ravel()" 24 exec(cmd) 25 return (res,cmd)