Computes the sum along the specified diagonal of the single-precision sparse matrix A.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The sparse matrix, A.
Specifies the diagonal to sum.
The computed trace.
The diagonal is specified by the
offset parameter where zero is the main diagonal, values greater than one refer to diagonals above the main diagonal (
A[i,i+offset]), and values less than one refer to diagonals below the main diagonal (
If offset is out of the bounds of the matrix
0 is returned.