@staticmethod
	def get_diag_kernel(X, type='linear', param=1.0):
		(Xdims,Xn) = X.size
    	
		kernel = matrix(1.0)
		if type=='linear':
			print('Calculating diagonal of a linear kernel with size {0}x{1}.'.format(Xn,Xn))
			kernel = matrix([ dotu(X[:,i],X[:,i]) for i in range(Xn)], (Xn,1), 'd')
		
		if type=='rbf':
			print('Gaussian kernel diagonal is always exp(0)=1.')
			kernel = matrix(1.0, (Xn,1), 'd')

		return kernel
Return True if hard linking is possible in the current directory, else
dataset/ETHPy150Open nicococo/tilitools/kernel.py/Kernel.get_diag_kernel--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_release.py/hard_linking_possible