nlop.Weighted

Contents

nlop.Weighted#

class bartorch.nlop.Weighted#

Bases: NonlinearOperator

Weighted sum a * x + b * z of two inputs, BART’s zaxpbz.

Parameters:
  • shape (tuple of int) – Shape of both inputs and of the output, C order.

  • a (float, default=1.0) – Real weights of input 0 (x) and input 1 (z).

  • b (float, default=1.0) – Real weights of input 0 (x) and input 1 (z).

Also has the methods and properties of NonlinearOperator.