diff --git a/RandLAPACK/drivers/rl_krillx.hh b/RandLAPACK/drivers/rl_krillx.hh index c085329a..a986b9e5 100644 --- a/RandLAPACK/drivers/rl_krillx.hh +++ b/RandLAPACK/drivers/rl_krillx.hh @@ -24,14 +24,6 @@ namespace RandLAPACK { using std::vector; -// TODO: make an interface for objects that be called as G(i,j) -// or G.block_eval( ... arguments for computing submatrices of kernel matrices ... ) -// -// ^ Maybe that'll just be an extension of the LinearOperator interface? -// -// Uhh ... probably not, since that interface already has an operator() definition. -// maybe overloading saves us? - template STATE krill_separable_rpchol( int64_t n, FUNC &G, vector &mus, vector &H, vector &X, T tol, diff --git a/RandLAPACK/misc/rl_gen.hh b/RandLAPACK/misc/rl_gen.hh index 07eb1b4a..5fba4817 100644 --- a/RandLAPACK/misc/rl_gen.hh +++ b/RandLAPACK/misc/rl_gen.hh @@ -532,5 +532,13 @@ void mat_gen( break; } } + +template +std::vector mat_gen(mat_gen_info &info, RandBLAS::RNGState &state) { + std::vector A(info.rows * info.cols, 0.0); + mat_gen(info, A.data(), state); + return A; +} + } #endif