warp.optim.linear.aslinearoperator#
- warp.optim.linear.aslinearoperator(A, batch_offsets=None)[source]#
Cast the dense or sparse matrix
Aas aLinearOperator.Amust be of one of the following types:two-dimensional
warp.array; thenAis assumed to be a dense matrixone-dimensional
warp.array; thenAis assumed to be a diagonal matrixwarp.optim.linear.LinearOperator; no casting necessary,batch_offsetsis ignored
- Parameters:
A (array | BsrMatrix | LinearOperator) – The matrix to wrap.
batch_offsets (array | None) – Optional array of shape
(B+1,)partitioning scalar degrees of freedom intoBindependent subproblems (seeLinearOperator).
- Return type: