Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///   Gets the kth diagonal of the tensor.
/// </summary>
/// <param name="k">The value for k, i.e. the specific diagonal to retrieve.</param>
Gets the kth diagonal of the tensor.
Gets the kth diagonal of the tensor .
public LongTensor Diagonal (int k)
        {
            var result = new LongTensor();
            THLongTensor_diag(result.handle, this.handle, k);
            return result;
        }
public LongTensor Diagonal ( int k ) { var result = new LongTensor ( ) ; THLongTensor_diag ( result . handle , this . handle , k ) ; return result ; }
Gets the kth diagonal of the tensor.
Gets the kth diagonal of the tensor .
k
int
The value for k, i.e. the specific diagonal to retrieve.
The value for k i . e . the specific diagonal to retrieve .