dot_inplace_right(a, b, block_size=1000)¶
Inplace dot product for memory efficiency. It computes
a * b = cwhere
bwill be replaced inplace with
- a (
(n_small, k)ndarray, n_small <= k) – The first array to dot - assumed to be small.
n_smallmust be smaller than
kso the result can be stored within the memory space of
- b (
(k, n_big)ndarray) – Second array to dot - assumed to be large. Will be damaged by this function call as it is used to store the output inplace.
- block_size (int, optional) – The size of the block of
awill be dotted against in each iteration. larger block sizes increase the time performance of the dot product at the cost of a higher memory overhead for the operation.
(n_small, n_big)ndarray) – The output of the operation. Exactly the same as a memory view onto
bis modified inplace to store the result.
- a (