Example #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
Example #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
Example #3
0
 def _block_force_slicing(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_slicing(arrays, list_ndim, result_ndim)
Example #4
0
 def _block_force_concatenate(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_concatenate(arrays, list_ndim, result_ndim)
Example #5
0
 def _block_force_slicing(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_slicing(arrays, list_ndim, result_ndim)
Example #6
0
 def _block_force_concatenate(arrays):
     arrays, list_ndim, result_ndim, _ = _block_setup(arrays)
     return _block_concatenate(arrays, list_ndim, result_ndim)