aspcore.lowrank.reconstruct_ir

aspcore.lowrank.reconstruct_ir(ir_decomp, out=None)

Takes a decomposition of an IR and reconstructs the IR. The decomposition is assumed to be of the form (ir1, ir2, ir3, …), where the i:th entry has shape (…, rank, I_i).

Parameters:
  • ir_decomp (list or tuple of ndarrays, where the i:th array has shape (..., rank, I_i)) – where the resulting reconstructed IR has length prod_{i=0}^{len(ir_decomp)} I_i

  • out (ndarray of same shape as return value) – will place the return value in the supplied array. Use to avoid repeated memory allocations

Returns:

ir

Return type:

ndarray of shape (…, I)