warp.tile_upper_solve_inplace#
- warp.tile_upper_solve_inplace( ) None#
Solve
U x = zin place for an upper-triangularU, overwritingzwithx.Behaves like
tile_upper_solve()– only the upper triangle ofUis read, the right-hand side may be 1D or 2D, and the same dtype and backend rules apply – except that the solution overwriteszinstead of being returned.This is a cooperative operation, so every thread in the block must call it.
This in-place variant avoids allocating shared memory for a separate output.
- Parameters:
U – A square, non-singular, upper-triangular tile with
shape=(M, M).z – The right-hand side, a tile with
shape=(M,)orshape=(M, NRHS), overwritten by the solutionx.
See
tile_upper_solve()for usage details, andtile_lower_solve()for an example.