Esempio n. 1
0
    def test_block_total_size_estimate(self, block):
        _, _, _, total_size = _block_setup([1])
        assert total_size == 1

        _, _, _, total_size = _block_setup([[1]])
        assert total_size == 1

        _, _, _, total_size = _block_setup([[1, 1]])
        assert total_size == 2

        _, _, _, total_size = _block_setup([[1], [1]])
        assert total_size == 2

        _, _, _, total_size = _block_setup([[1, 2], [3, 4]])
        assert total_size == 4
Esempio n. 2
0
    def test_block_total_size_estimate(self, block):
        _, _, _, total_size = _block_setup([1])
        assert total_size == 1

        _, _, _, total_size = _block_setup([[1]])
        assert total_size == 1

        _, _, _, total_size = _block_setup([[1, 1]])
        assert total_size == 2

        _, _, _, total_size = _block_setup([[1], [1]])
        assert total_size == 2

        _, _, _, total_size = _block_setup([[1, 2], [3, 4]])
        assert total_size == 4
Esempio n. 3
0
 def _block_force_slicing(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_slicing(arrays, list_ndim, result_ndim)
Esempio n. 4
0
 def _block_force_concatenate(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_concatenate(arrays, list_ndim, result_ndim)
Esempio n. 5
0
 def _block_force_slicing(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_slicing(arrays, list_ndim, result_ndim)
Esempio n. 6
0
 def _block_force_concatenate(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_concatenate(arrays, list_ndim, result_ndim)