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