Return the diagonals of the Gram object in a matrix. The diagonals will be taken from the square matrix with corner at lower right and size equal to the number of rows. This is useful for the case in which the Gram matrices are not complete (square). This assumes the square test-test kernel entries are in the rightmost columns of the matrix. When the matrix is complete, this strategy also works.
d = diag(gramObj)