next up previous contents
Next: normalize Up: Gram Previous: get   Contents


Return the $ K$ diagonals of the Gram object in a $ (M\times K)$ 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)
gramObj - Gram object

Darrin Lewis 2006-05-08