public static DMatrixSparseCSC diag ( double ... values ) { int N = values . length ; return diag ( new DMatrixSparseCSC ( N , N , N ) , values , 0 , N ) ; }
Returns a diagonal matrix with the specified diagonal elements .