All this operation affect the tensor on which the method is called (self). No additional memory is created.

Subsections

  1. [self] add(value)
  2. [self] add(tensor)
  3. [self] add(value, tensor)
  4. [self] mul(value)
  5. [self] cmul(tensor)
  6. [self] addcmul(value, tensor1, tensor2)
  7. [self] div(value)
  8. [self] cdiv(tensor)
  9. [self] addcdiv(value, tensor1, tensor2)
  10. [number] dot(tensor)
  11. addT2dotT1(value, mat, vec)
  12. addT1outT1(value, vec1, vec2)
  13. addT2dotT2(value, mat1, mat2)
  14. addT4dotT2(value, t4, t2)
  15. addT2outT2(value, mat1, mat2)