Square defines the square operation for the tensor values
()
| 147 | |
| 148 | // Square defines the square operation for the tensor values |
| 149 | func (tensor *Tensor) Square() *Tensor { |
| 150 | defer tensor.Check() |
| 151 | return tensor.Pow(op.Const(tensor.Path.SubScope("y"), 2.)) |
| 152 | } |
| 153 | |
| 154 | // Sqrt defines the square root operation for the tensor values |
| 155 | func (tensor *Tensor) Sqrt() *Tensor { |