def op_abs_tmul(lin_op, value):
 if (lin_op.type is lo.NEG):
  result = value
 elif (lin_op.type is lo.MUL):
  coeff = mul(lin_op.data, {}, True)
  if np.isscalar(coeff):
   result = (coeff * value)
  else:
   result = (coeff.T * value)
 elif (lin_op.type is lo.DIV):
  divisor = mul(lin_op.data, {}, True)
  result = (value / divisor)
 elif (lin_op.type is lo.CONV):
  result = conv_mul(lin_op, value, True, True)
 else:
  result = op_tmul(lin_op, value)
 return result

def op_abs_tmul ( lin_op , value ) : if ( lin_op . type is lo . NEG ) : result = value elif ( lin_op . type is lo . MUL ) : coeff = mul ( lin_op . data , { } , True ) if np . isscalar ( coeff ) : result = ( coeff * value ) else : result = ( coeff . T * value ) elif ( lin_op . type is lo . DIV ) : divisor = mul ( lin_op . data , { } , True ) result = ( value / divisor ) elif ( lin_op . type is lo . CONV ) : result = conv_mul ( lin_op , value , True , True ) else : result = op_tmul ( lin_op , value ) return result
applies the linear operator |a .