==5545== Memcheck, a memory error detector ==5545== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==5545== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==5545== Command: /data/blackswan/ripley/R/R-devel-vg/bin/exec/R --vanilla ==5545== R Under development (unstable) (2020-04-29 r78336) -- "Unsuffered Consequences" Copyright (C) 2020 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "gnmf" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('gnmf') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("V") > ### * V > > flush(stderr()); flush(stdout()) > > ### Name: V > ### Title: Example 50 x 10 matrix > ### Aliases: V > ### Keywords: datasets > > ### ** Examples > > data(V) > > > > cleanEx() > nameEx("gnmf-package") > ### * gnmf-package > > flush(stderr()); flush(stdout()) > > ### Name: gnmf-package > ### Title: Generalized non-negative matrix factorization based on Renyi > ### Divergence > ### Aliases: gnmf-package > ### Keywords: package > > ### ** Examples > > data(V) > > > > > cleanEx() > nameEx("gnmf") > ### * gnmf > > flush(stderr()); flush(stdout()) > > ### Name: gnmf > ### Title: Generalized non-negative matrix factorization based on Renyi > ### Divergence > ### Aliases: gnmf > ### Keywords: Clustering Multivariate Techniques > > ### ** Examples > > # Load sample data. > data(V) > > # Compute NMF with 20 repeats. > result <- gnmf(V,scheme="KL") ==5545== Conditional jump or move depends on uninitialised value(s) ==5545== at 0x161C34CB: Simulation::Run_KL() (packages/tests-vg/gnmf/src/Simulation.cpp:89) ==5545== by 0x161C01D2: Run (packages/tests-vg/gnmf/src/JobHandler.cpp:747) ==5545== by 0x161C01D2: JobHandler::Run(int, double) (packages/tests-vg/gnmf/src/JobHandler.cpp:729) ==5545== by 0x161C022C: JobHandler::Run() (packages/tests-vg/gnmf/src/JobHandler.cpp:723) ==5545== by 0x161C2AB7: CppWrapper(double*, int*, int*, char**, int*, int*, int*, int*, char**, char**, char**, char**, char**, double*, int*, char**, int*, double*, double*, double*, double*, double*, double*, double*, double*, double*) (packages/tests-vg/gnmf/src/RInterface.cc:93) ==5545== by 0x49EA88: do_dotCode (svn/R-devel/src/main/dotcode.c:1866) ==5545== by 0x4D2B72: bcEval (svn/R-devel/src/main/eval.c:7097) ==5545== by 0x4ED537: Rf_eval (svn/R-devel/src/main/eval.c:723) ==5545== by 0x4EF116: R_execClosure (svn/R-devel/src/main/eval.c:1888) ==5545== by 0x4EFEF3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1814) ==5545== by 0x4ED703: Rf_eval (svn/R-devel/src/main/eval.c:846) ==5545== by 0x4F2081: do_set (svn/R-devel/src/main/eval.c:2960) ==5545== by 0x4ED984: Rf_eval (svn/R-devel/src/main/eval.c:798) ==5545== Uninitialised value was created by a heap allocation ==5545== at 0x4838E86: operator new(unsigned long) (/builddir/build/BUILD/valgrind-3.15.0/coregrind/m_replacemalloc/vg_replace_malloc.c:344) ==5545== by 0x161BCC40: JobHandler::JobHandler(double*, int*, int*, char**, int*, int*, int*, int*, char**, char**, char**, char**, char**, double*, int*, char**, int*, double*, double*, double*, double*, double*, double*, double*, double*, double*) (packages/tests-vg/gnmf/src/JobHandler.cpp:38) ==5545== by 0x161C2AA8: CppWrapper(double*, int*, int*, char**, int*, int*, int*, int*, char**, char**, char**, char**, char**, double*, int*, char**, int*, double*, double*, double*, double*, double*, double*, double*, double*, double*) (packages/tests-vg/gnmf/src/RInterface.cc:87) ==5545== by 0x49EA88: do_dotCode (svn/R-devel/src/main/dotcode.c:1866) ==5545== by 0x4D2B72: bcEval (svn/R-devel/src/main/eval.c:7097) ==5545== by 0x4ED537: Rf_eval (svn/R-devel/src/main/eval.c:723) ==5545== by 0x4EF116: R_execClosure (svn/R-devel/src/main/eval.c:1888) ==5545== by 0x4EFEF3: Rf_applyClosure (svn/R-devel/src/main/eval.c:1814) ==5545== by 0x4ED703: Rf_eval (svn/R-devel/src/main/eval.c:846) ==5545== by 0x4F2081: do_set (svn/R-devel/src/main/eval.c:2960) ==5545== by 0x4ED984: Rf_eval (svn/R-devel/src/main/eval.c:798) ==5545== by 0x51DD6C: Rf_ReplIteration (svn/R-devel/src/main/main.c:264) ==5545== by 0x51DD6C: Rf_ReplIteration (svn/R-devel/src/main/main.c:200) ==5545== > > # Extract H and W from the result. > # H and W are lists, each containing the result of 20 repeats. > H <- result$H > W <- result$W > > # Get the H and W matrices of the first repeat. > H1 <- H[[1]] > W1 <- W[[1]] > > > > ### *