--- Begin Message ---
Source: octave-stk
Version: 2.8.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf
Hi,
During a rebuild of all packages in sid, your package failed to build
on armhf.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
> /usr/bin/mkoctfile --verbose --mex --output __stk_dist_pairwise__.mex
> stk_dist_pairwise.c
> /usr/bin/mkoctfile --verbose --mex --output __get_column_number__.mex
> get_column_number.c
> /usr/bin/mkoctfile --verbose --mex --output __stk_dist_matrixy__.mex
> stk_dist_matrixy.c
> /usr/bin/mkoctfile --verbose --mex --output __stk_filldist_discr_mex__.mex
> stk_filldist_discr_mex.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_dist_pairwise.c -o
> /tmp/oct-UF3qW1.o
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG get_column_number.c -o
> /tmp/oct-G2cJZa.o
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_dist_matrixy.c -o
> /tmp/oct-EqvG1R.o
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_filldist_discr_mex.c -o
> /tmp/oct-uUnPP3.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_dist_pairwise__.mex /tmp/oct-UF3qW1.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_dist_matrixy__.mex /tmp/oct-EqvG1R.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_filldist_discr_mex__.mex /tmp/oct-uUnPP3.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __get_column_number__.mex /tmp/oct-G2cJZa.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_gpquadform_matrixy__.mex
> stk_gpquadform_matrixy.c
> /usr/bin/mkoctfile --verbose --mex --output __stk_isdominated_mex__.mex
> stk_isdominated_mex.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_gpquadform_matrixy.c -o
> /tmp/oct-wlUvDw.o
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_isdominated_mex.c -o
> /tmp/oct-asYCEq.o
> /usr/bin/mkoctfile --verbose --mex --output __stk_mindist_mex__.mex
> stk_mindist_mex.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_mindist_mex.c -o
> /tmp/oct-Ydshlo.o
> /usr/bin/mkoctfile --verbose --mex --output __stk_dist_matrixx__.mex
> stk_dist_matrixx.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_dist_matrixx.c -o
> /tmp/oct-VvtgSS.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_gpquadform_matrixy__.mex /tmp/oct-wlUvDw.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_mindist_mex__.mex /tmp/oct-Ydshlo.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_gpquadform_matrixx__.mex
> stk_gpquadform_matrixx.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_gpquadform_matrixx.c -o
> /tmp/oct-WKlWay.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_dist_matrixx__.mex /tmp/oct-VvtgSS.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_gpquadform_pairwise__.mex
> stk_gpquadform_pairwise.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_gpquadform_pairwise.c -o
> /tmp/oct-5hsP84.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_isdominated_mex__.mex /tmp/oct-asYCEq.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_paretofind_mex__.mex
> stk_paretofind_mex.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_paretofind_mex.c -o
> /tmp/oct-w6YZxV.o
> /usr/bin/mkoctfile --verbose --mex --output __stk_sampling_vdc_rr2__.mex
> stk_sampling_vdc_rr2.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_sampling_vdc_rr2.c -o
> /tmp/oct-sGeDeZ.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_gpquadform_pairwise__.mex
> /tmp/oct-5hsP84.o -shared -Wl,-Bsymbolic -Wl,-z,relro
> -L/usr/lib/arm-linux-gnueabihf -shared -Wl,-Bsymbolic -flto=auto
> -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_gpquadform_matrixx__.mex /tmp/oct-WKlWay.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_sampling_sobol_mex__.mex
> stk_sampling_sobol_mex.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_sampling_sobol_mex.c -o
> /tmp/oct-mIrD2m.o
> /usr/bin/mkoctfile --verbose --mex --output __stk_distrib_bivnorm0_cdf__.mex
> stk_distrib_bivnorm0_cdf.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_distrib_bivnorm0_cdf.c -o
> /tmp/oct-yjax5O.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_paretofind_mex__.mex /tmp/oct-w6YZxV.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> /usr/bin/mkoctfile --verbose --mex --output __stk_dominatedhv_mex__.mex
> stk_dominatedhv_mex.c wfg.c
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG stk_dominatedhv_mex.c -o
> /tmp/oct-AmVBsJ.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_sampling_vdc_rr2__.mex /tmp/oct-sGeDeZ.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_distrib_bivnorm0_cdf__.mex
> /tmp/oct-yjax5O.o -shared -Wl,-Bsymbolic -Wl,-z,relro
> -L/usr/lib/arm-linux-gnueabihf -shared -Wl,-Bsymbolic -flto=auto
> -ffat-lto-objects -Wl,-z,relro
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_sampling_sobol_mex__.mex /tmp/oct-mIrD2m.o
> -shared -Wl,-Bsymbolic -Wl,-z,relro -L/usr/lib/arm-linux-gnueabihf -shared
> -Wl,-Bsymbolic -flto=auto -ffat-lto-objects -Wl,-z,relro
> gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time
> -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/octave-8.4.0/octave/..
> -I/usr/include/octave-8.4.0/octave -pthread -fopenmp -g -O2
> -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -I. -DMEX_DEBUG wfg.c -o /tmp/oct-hXnD5b.o
> g++ -I/usr/include/octave-8.4.0/octave/.. -I/usr/include/octave-8.4.0/octave
> -pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> -fstack-protector-strong -fstack-clash-protection -Wformat
> -Werror=format-security -o __stk_dominatedhv_mex__.mex /tmp/oct-AmVBsJ.o
> /tmp/oct-hXnD5b.o -shared -Wl,-Bsymbolic -Wl,-z,relro
> -L/usr/lib/arm-linux-gnueabihf -shared -Wl,-Bsymbolic -flto=auto
> -ffat-lto-objects -Wl,-z,relro
> make[1]: Leaving directory '/<<PKGBUILDDIR>>/src'
> copyfile /<<PKGBUILDDIR>>/./src/__get_column_number__.mex
> /<<PKGBUILDDIR>>/./src/__stk_dist_matrixx__.mex
> /<<PKGBUILDDIR>>/./src/__stk_dist_matrixy__.mex
> /<<PKGBUILDDIR>>/./src/__stk_dist_pairwise__.mex
> /<<PKGBUILDDIR>>/./src/__stk_distrib_bivnorm0_cdf__.mex
> /<<PKGBUILDDIR>>/./src/__stk_dominatedhv_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_filldist_discr_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_gpquadform_matrixx__.mex
> /<<PKGBUILDDIR>>/./src/__stk_gpquadform_matrixy__.mex
> /<<PKGBUILDDIR>>/./src/__stk_gpquadform_pairwise__.mex
> /<<PKGBUILDDIR>>/./src/__stk_isdominated_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_mindist_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_paretofind_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_sampling_sobol_mex__.mex
> /<<PKGBUILDDIR>>/./src/__stk_sampling_vdc_rr2__.mex
> /<<PKGBUILDDIR>>/./inst/arm-unknown-linux-gnueabihf-api-v58
> For information about changes from previous versions of the stk package, run
> 'news stk'.
> rm: cannot remove
> '/<<PKGBUILDDIR>>/debian/octave-stk/usr/share/octave/packages/stk-2.8.1/doc':
> Is a directory
> dh_octave_check -O--buildsystem=octave
> Checking package...
> Run the unit tests...
> Checking m files ...
> [inst/utils/stk_generate_samplepaths.m]
> >>>>> /<<PKGBUILDDIR>>/inst/utils/stk_generate_samplepaths.m
> ***** shared model, xi, zi, xt, n, nb_paths
> dim = 1; n = 50; nb_paths = 5;
> model = stk_model (@stk_materncov32_iso, dim);
> model.param = log ([1.0; 2.9]);
> xt = stk_sampling_regulargrid (n, dim, [-1.0; 1.0]);
> xi = [xt(1, :); xt(end, :)]; zi = [0; 0];
> ***** error zsim = stk_generate_samplepaths ();
> ***** error zsim = stk_generate_samplepaths (model);
> ***** test zsim = stk_generate_samplepaths (model, xt);
> ***** test zsim = stk_generate_samplepaths (model, xt, nb_paths);
> ***** test zsim = stk_generate_samplepaths (model, xi, zi, xt);
> ***** test zsim = stk_generate_samplepaths (model, xi, zi, xt, nb_paths);
> ***** test
> zsim = stk_generate_samplepaths (model, xt);
> assert (isequal (size (zsim), [n, 1]));
> ***** test
> zsim = stk_generate_samplepaths (model, xt, nb_paths);
> assert (isequal (size (zsim), [n, nb_paths]));
> ***** test % duplicate simulation points
> zsim = stk_generate_samplepaths (model, [xt; xt], nb_paths);
> assert (isequal (size (zsim), [2 * n, nb_paths]));
> assert (isequal (zsim(1:n, :), zsim((n + 1):end, :)));
> ***** test % simulation points equal to observation points (noiseless model)
> % https://sourceforge.net/p/kriging/tickets/14/
> zsim = stk_generate_samplepaths (model, xt, zeros (n, 1), xt);
> assert (isequal (zsim, zeros (n, 1)));
> 10 tests, 10 passed, 0 known failure, 0 skipped
> [inst/utils/stk_conditioning.m]
> >>>>> /<<PKGBUILDDIR>>/inst/utils/stk_conditioning.m
> ***** shared n, m, ni, xi_ind, lambda, zsim, zi
>
> n = 50; m = 5; ni = 10; xi_ind = 1:ni;
> lambda = 1/ni * ones (ni, n); % prediction == averaging
> zsim = ones (n, m); % const unconditioned samplepaths
> zi = zeros (ni, 1); % conditioning by zeros
> ***** error zsimc = stk_conditioning ();
> ***** error zsimc = stk_conditioning (lambda);
> ***** error zsimc = stk_conditioning (lambda, zi);
> ***** test zsimc = stk_conditioning (lambda, zi, zsim);
> ***** test zsimc = stk_conditioning (lambda, zi, zsim, xi_ind);
> ***** test
> zsimc = stk_conditioning (lambda, zi, zsim, xi_ind);
> assert (stk_isequal_tolabs (double (zsimc), zeros (n, m)));
> ***** test
> zi = 2 * ones (ni, 1); % conditioning by twos
> zsimc = stk_conditioning (lambda, zi, zsim, xi_ind);
> assert (stk_isequal_tolabs (double (zsimc), 2 * ones (n, m)));
> ***** test
> DIM = 1; nt = 400;
> xt = stk_sampling_regulargrid (nt, DIM, [-1.0; 1.0]);
>
> NI = 6; xi_ind = [1 20 90 200 300 350];
> xi = xt(xi_ind, 1);
> zi = (1:NI)'; % linear response ;-)
>
> % Carry out the kriging prediction at points xt
> model = stk_model (@stk_materncov52_iso);
> model.param = log ([1.0; 2.9]);
> [ignore_zp, lambda] = stk_predict (model, xi, [], xt);
>
> % Generate (unconditional) sample paths according to the model
> NB_PATHS = 10;
> zsim = stk_generate_samplepaths (model, xt, NB_PATHS);
> zsimc = stk_conditioning (lambda, zi, zsim, xi_ind);
> 8 tests, 8 passed, 0 known failure, 0 skipped
> [inst/param/estim/stk_param_init.m]
> >>>>> /<<PKGBUILDDIR>>/inst/param/estim/stk_param_init.m
> ***** test
> xi = (1:10)'; zi = sin (xi);
> model = stk_model (@stk_materncov52_iso);
> model.param = stk_param_init (model, xi, zi, [1; 10], false);
> xt = (1:9)' + 0.5; zt = sin (xt);
> zp = stk_predict (model, xi, zi, xt);
> assert (sum ((zt - zp.mean) .^ 2) < 1e-3);
> ***** test % check equivariance of parameter estimates
> f = @(x) sin (x);
> xi = stk_sampling_regulargrid (10, 1); zi = stk_feval (f, xi);
> shift = 1000; scale = 0.01;
> model = stk_model (@stk_materncov32_iso);
> p1 = stk_param_init (model, xi, zi);
> p2 = stk_param_init (model, xi, shift + scale .* zi);
> assert (stk_isequal_tolabs (p2(1), p1(1) + log (scale^2), 1e-10))
> assert (stk_isequal_tolabs (p2(2), p1(2), eps))
> ***** shared xi, zi, BOX, xt, zt
>
> f = @(x)(- (0.8 * x + sin (5 * x + 1) + 0.1 * sin (10 * x)));
> DIM = 1; % Dimension of the factor space
> BOX = [-1.0; 1.0]; % Factor space
>
> xi = stk_sampling_regulargrid (20, DIM, BOX); % Evaluation points
> zi = stk_feval (f, xi); % Evaluation results
>
> NT = 400; % Number of points in the grid
> xt = stk_sampling_regulargrid (NT, DIM, BOX); % Generate a regular grid
> zt = stk_feval (f, xt); % Values of f on the grid
> ***** xtest % This test is known to fail in Debian buster i386
> % because of a known problem in Octave's sqp/qp functions
> % http://savannah.gnu.org/bugs/?38875
> model = stk_model (@stk_materncov_iso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** test
> model = stk_model (@stk_materncov_aniso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 5 column 14
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> ***** test
> model = stk_model (@stk_materncov32_iso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** test
> model = stk_model (@stk_materncov32_aniso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** test
> model = stk_model (@stk_materncov52_iso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** test
> model = stk_model (@stk_materncov52_aniso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** test
> model = stk_model (@stk_gausscov_iso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> warning: matrix singular to machine precision, rcond = 1.21281e-17
> warning: called from
> linsolve at line 113 column 7
> linsolve at line 42 column 3
> stk_set_righthandside at line 44 column 16
> stk_make_kreq at line 35 column 6
> stk_predict_ at line 112 column 10
> stk_predict at line 104 column 16
> __test__ at line 6 column 5
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> ***** test
> model = stk_model (@stk_gausscov_aniso);
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> warning: matrix singular to machine precision, rcond = 3.81374e-18
> warning: called from
> linsolve at line 113 column 7
> linsolve at line 42 column 3
> stk_set_righthandside at line 44 column 16
> stk_make_kreq at line 35 column 6
> stk_predict_ at line 112 column 10
> stk_predict at line 104 column 16
> __test__ at line 6 column 5
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> ***** test % Homoscedastic case / do_estim_lnv = true
> model = stk_model (@stk_materncov32_iso);
> [model.param, model.lognoisevariance] = ...
> stk_param_init (model, xi, zi, BOX, true);
> [model.param, model.lognoisevariance] = ...
> stk_param_estim (model, xi, zi);
> zp = stk_predict (model, xi, zi, xt);
> assert (model.lognoisevariance > -inf);
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> warning: This way of setting do_estim_lnv is deprecated
> warning: called from
> stk_param_init>stk_param_init_ at line 250 column 5
> stk_param_init at line 87 column 18
> __test__ at line 4 column 40
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> ***** error % Homoscedastic case / do_estim_lnv = false / model.lnv = nan
> model = stk_model (@stk_materncov32_iso);
> model.lognoisevariance = nan; % not compatible with do_estim_lnv == false
> [model.param, model.lognoisevariance] = ...
> stk_param_init (model, xi, zi, BOX, false);
> ***** test % Heteroscedastic case / known noise variance
> model = stk_model (@stk_materncov32_iso);
> lnv = log ((100 + rand (size (zi))) / 1e6);
> model.lognoisevariance = lnv; % here we say that lnv is known
> [param0, model.lognoisevariance] = stk_param_init (model, xi, zi, BOX);
> model.param = stk_param_estim (model, xi, zi, param0);
> zp = stk_predict (model, xi, zi, xt);
> assert (isequal (model.lognoisevariance, lnv)); % should be untouched
> assert (max ((zp.mean - zt) .^ 2) < 1e-3)
> ***** shared model, x, z
> model = stk_model (@stk_materncov52_iso);
> n = 10; x = stk_sampling_regulargrid (n, 1, [0; 1]); z = ones (size (x));
> ***** test % Constant response, noiseless model
> [param, lnv] = stk_param_init (model, x, z);
> assert ((all (isfinite (param))) && (length (param) == 2));
> assert (isequal (lnv, -inf));
> warning: Parameter estimation is impossible with constant-response data.
> warning: called from
> stk_param_init>paraminit_ at line 351 column 5
> stk_param_init>stk_param_init_ at line 323 column 14
> stk_param_init at line 87 column 18
> __test__ at line 3 column 15
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> ***** test % Constant response, noisy model
> model.lognoisevariance = nan;
> [param, lnv] = stk_param_init (model, x, z);
> assert ((all (isfinite (param))) && (length (param) == 2));
> assert (isscalar (lnv) && isfinite (lnv));
> warning: Parameter estimation is impossible with constant-response data.
> warning: called from
> stk_param_init>paraminit_ at line 351 column 5
> stk_param_init>stk_param_init_ at line 323 column 14
> stk_param_init at line 87 column 18
> __test__ at line 4 column 15
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 30 column 31
>
> 15 tests, 15 passed, 0 known failure, 0 skipped
> [inst/param/estim/stk_param_estim.m]
> >>>>> /<<PKGBUILDDIR>>/inst/param/estim/stk_param_estim.m
> ***** shared f, xi, zi, NI, param0, param1, model
>
> f = @(x)(- (0.8 * x + sin (5 * x + 1) + 0.1 * sin (10 * x)) );
> DIM = 1; NI = 20; box = [-1.0; 1.0];
> xi = stk_sampling_regulargrid (NI, DIM, box);
>
> SIGMA2 = 1.0; % variance parameter
> NU = 4.0; % regularity parameter
> RHO1 = 0.4; % scale (range) parameter
> param0 = log ([SIGMA2; NU; 1/RHO1]);
>
> model = stk_model (@stk_materncov_iso);
> ***** test % noiseless
> zi = stk_feval (f, xi);
> param1 = stk_param_estim (model, xi, zi, param0);
> assert (isequal (size (param1), size (param0)))
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 4 column 9
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> ***** test % same thing, with empty lnv0 (ok)
> param2 = stk_param_estim (model, xi, zi, param0, []);
> assert (stk_isequal_tolrel (param2, param1, 1e-2))
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 3 column 9
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> ***** error % same thing, with lnv0 == NaN (not ok as a starting point)
> param2 = stk_param_estim (model, xi, zi, param0, nan);
> ***** error % same thing, with lnv0 == -inf (not ok as a starting point)
> param2 = stk_param_estim (model, xi, zi, param0, -inf);
> ***** test % same thing, with explicit value for 'criterion'
> param2 = stk_param_estim (model, xi, zi, param0, [], @stk_param_relik);
> assert (stk_isequal_tolrel (param1, param2, 1e-2))
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 3 column 9
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> ***** test % noiseless
> zi = stk_feval (f, xi);
> param1 = stk_param_estim (model, xi, zi, param0);
> param2 = stk_param_estim (model, xi, zi, param0, [], @stk_param_relik);
> % We cannot assume a DETERMINISTIC optimization algorithm
> % (for some reason, Octave's sqp is not exactly deterministic)
> assert (stk_isequal_tolrel (param1, param2, 1e-2))
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 4 column 9
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> warning: sqp: QP subproblem is non-convex and unbounded
> warning: called from
> sqp at line 436 column 9
> stk_minimize_boxconstrained at line 57 column 18
> stk_param_estim_optim at line 70 column 23
> stk_param_estim at line 139 column 15
> __test__ at line 5 column 9
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> ***** test % noisy
> NOISE_STD_TRUE = 0.1;
> NOISE_STD_INIT = 1e-5;
> zi = zi + NOISE_STD_TRUE * randn(NI, 1);
> model.lognoisevariance = 2 * log(NOISE_STD_INIT);
> [param, lnv] = stk_param_estim ...
> (model, xi, zi, param0, model.lognoisevariance);
> ***** error param = stk_param_estim ()
> ***** error param = stk_param_estim (model);
> ***** error param = stk_param_estim (model, xi);
> ***** test % Constant response
> model = stk_model (@stk_materncov52_iso);
> n = 10; x = stk_sampling_regulargrid (n, 1, [0; 1]); z = ones (size (x));
> param = stk_param_estim (model, x, z);
> assert ((all (isfinite (param))) && (length (param) == 2));
> warning: Constant-response data: the output of stk_param_estim is likely to
> be unreliable.
> warning: called from
> stk_param_estim at line 95 column 5
> __test__ at line 5 column 8
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> warning: Parameter estimation is impossible with constant-response data.
> warning: called from
> stk_param_init>paraminit_ at line 351 column 5
> stk_param_init>stk_param_init_ at line 323 column 14
> stk_param_init at line 87 column 18
> stk_param_estim>provide_starting_point at line 205 column 20
> stk_param_estim at line 110 column 30
> __test__ at line 5 column 8
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 38 column 31
>
> 11 tests, 11 passed, 0 known failure, 0 skipped
> [inst/param/estim/stk_param_init_lnv.m]
> >>>>> /<<PKGBUILDDIR>>/inst/param/estim/stk_param_init_lnv.m
> ***** test
> f = @(x)(- (0.8 * x + sin (5 * x + 1) + 0.1 * sin (10 * x)));
> ni = 20;
> xi = (linspace (-1, 1, ni))' + 0.2 * (randn (ni, 1));
> zi = stk_feval (f, xi);
>
> model = stk_model (@stk_materncov_iso);
> model.param = log ([1; 5/2; 1/0.4]);
> model.lognoisevariance = nan;
> lnv = stk_param_init_lnv (model, xi, zi);
>
> assert ((isscalar (lnv)) && (lnv > -30) && (lnv < 30));
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/param/estim/stk_param_gls.m]
> >>>>> /<<PKGBUILDDIR>>/inst/param/estim/stk_param_gls.m
> ***** shared xi, zi, model, beta, sigma2
> xi = (1:10)'; zi = sin (xi);
> model = stk_model (@stk_materncov52_iso);
> model.param = [0.0 0.0];
> ***** test
> model.lm = stk_lm_constant ();
> [beta, sigma2] = stk_param_gls (model, xi, zi);
> ***** assert (stk_isequal_tolabs (beta, 0.1346064, 1e-6))
> ***** assert (stk_isequal_tolabs (sigma2, 0.4295288, 1e-6))
> ***** test
> model.lm = stk_lm_affine ();
> [beta, sigma2] = stk_param_gls (model, xi, zi);
> ***** assert (stk_isequal_tolabs (beta, [0.4728342; -0.0614960], 1e-6))
> ***** assert (stk_isequal_tolabs (sigma2, 0.4559431, 1e-6))
> ***** test
> model.lm = stk_lm_null ();
> [beta, sigma2] = stk_param_gls (model, xi, zi);
> ***** assert (isequal (beta, zeros (0, 1)))
> ***** assert (stk_isequal_tolabs (sigma2, 0.3977993, 1e-6))
> 9 tests, 9 passed, 0 known failure, 0 skipped
> [inst/param/estim/stk_param_relik.m]
> >>>>> /<<PKGBUILDDIR>>/inst/param/estim/stk_param_relik.m
> ***** shared f, xi, zi, NI, model, C, dC1, dC2
>
> f = @(x)(- (0.8 * x(:, 1) + sin (5 * x(:, 2) + 1) ...
> + 0.1 * sin (10 * x(:, 3))));
> DIM = 3; NI = 20; box = repmat ([-1.0; 1.0], 1, DIM);
> xi = stk_sampling_halton_rr2 (NI, DIM, box);
> zi = stk_feval (f, xi);
>
> SIGMA2 = 1.0; % variance parameter
> NU = 4.0; % regularity parameter
> RHO1 = 0.4; % scale (range) parameter
>
> model = stk_model (@stk_materncov_aniso);
> model.param = log ([SIGMA2; NU; 1/RHO1 * ones(DIM, 1)]);
> ***** error [C, dC1, dC2] = stk_param_relik ();
> ***** error [C, dC1, dC2] = stk_param_relik (model);
> ***** error [C, dC1, dC2] = stk_param_relik (model, xi);
> ***** test [C, dC1, dC2] = stk_param_relik (model, xi, zi);
> ***** test
> TOL_REL = 0.01;
> assert (stk_isequal_tolrel (C, 21.6, TOL_REL));
> assert (stk_isequal_tolrel (dC1, [4.387 -0.1803 0.7917 0.1392 2.580]',
> TOL_REL));
> assert (isequal (dC2, []));
> ***** shared xi, zi, model, TOL_REL
> xi = [-1 -.6 -.2 .2 .6 1]';
> zi = [-0.11 1.30 0.23 -1.14 0.36 -0.37]';
> model = stk_model (@stk_materncov_iso);
> model.param = log ([1.0 4.0 2.5]);
> model.lognoisevariance = log (0.01);
> TOL_REL = 0.01;
> ***** test % Another simple 1D check
> [C, dC1, dC2] = stk_param_relik (model, xi, zi);
> assert (stk_isequal_tolrel (C, 6.327, TOL_REL));
> assert (stk_isequal_tolrel (dC1, [0.268 0.0149 -0.636]', TOL_REL));
> assert (stk_isequal_tolrel (dC2, -1.581e-04, TOL_REL));
> ***** test % Same 1D test with simple kriging
> model.lm = stk_lm_null;
> [C, dC1, dC2] = stk_param_relik (model, xi, zi);
> assert (stk_isequal_tolrel (C, 7.475, TOL_REL));
> assert (stk_isequal_tolrel (dC1, [0.765 0.0238 -1.019]', TOL_REL));
> assert (stk_isequal_tolrel (dC2, 3.0517e-03, TOL_REL));
> ***** test % Check the gradient on a 2D test case
>
> f = @stk_testfun_braninhoo;
> DIM = 2;
> BOX = [[-5; 10], [0; 15]];
> NI = 20;
> TOL_REL = 1e-2;
> DELTA = 1e-6;
>
> model = stk_model (@stk_materncov52_iso, DIM);
> model.param = [1 1];
>
> xi = stk_sampling_halton_rr2 (NI, DIM, BOX);
> zi = stk_feval (f, xi);
>
> for range = [0.3 2 10]
> model.param(2) = - log (range);
> for diff = 1:2
> assert (stk_test_critgrad ...
> (@stk_param_relik, model, xi, zi, diff, 1e-6));
> end
> end
> 8 tests, 8 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/log1p.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/log1p.m
> ***** test
> u = rand (4, 3); x = stk_dataframe (u); v = log1p (x);
> assert (strcmp (class (v), class (u)) && isequal (v, log1p (u)))
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/double.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/double.m
> ***** test
> u = rand(4, 3);
> x = stk_dataframe(u);
> v = double(x);
> assert (strcmp(class(v), 'double') && isequal(v, u))
> ***** test
> u = (rand(4, 3) < 0.5);
> x = stk_dataframe(u);
> v = double(x);
> assert (strcmp(class(v), 'double') && isequal(v, double(u)))
> ***** test
> u = uint8 (rand (4, 3) * 5);
> x = stk_dataframe(u);
> v = double(x);
> assert (strcmp(class(v), 'double') && isequal(v, double(u)))
> 3 tests, 3 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/length.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/length.m
> ***** error length (stk_dataframe ([1 2; 3 4; 5 6]))
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/unique.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/unique.m
> ***** test
> cn = {'u' 'v' 'w'}; x = stk_dataframe (rand (4, 3), cn);
> y = [x; x]; z = unique (y, 'rows');
> assert (isequal (z.colnames, cn));
> assert (isequal (z.data, unique (x.data, 'rows')));
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/isfinite.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/isfinite.m
> ***** test
> u = [pi, NaN, Inf, -Inf]; x = stk_dataframe (u); v = isfinite (x);
> assert (islogical (v) && isequal (v, isfinite (u)))
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/fieldnames.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/fieldnames.m
> ***** test
> x = stk_dataframe (rand (3, 2), {'u' 'v'});
> assert (isequal (sort (fieldnames (x)), ...
> {'colnames'; 'data'; 'info'; 'rownames'; 'sample_size'; 'u'; 'v'}));
> ***** test
> x = stk_dataframe (rand (3, 2));
> x.rownames(2:3) = {'aa', 'bb'};
> x.colnames{2} = 'toto';
> assert (isequal (fieldnames (x), ...
> {'toto'; 'aa'; 'bb'; 'data'; 'info'; ...
> 'rownames'; 'colnames'; 'sample_size'}));
> 2 tests, 2 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/atand.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/atand.m
> ***** test
> u = rand (4, 3); x = stk_dataframe (u); v = atand (x);
> assert (strcmp (class (v), class (u)) && isequal (v, atand (u)))
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/quantile.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/quantile.m
> ***** shared x1, df1, p
> x1 = rand (9, 3);
> df1 = stk_dataframe (x1, {'a', 'b', 'c'});
> p = 0.95;
> ***** assert (isequal (quantile (df1, p), quantile (x1, p)))
> ***** assert (isequal (quantile (df1, p, 1), quantile (x1, p)))
> ***** assert (isequal (quantile (df1, p, 2), quantile (x1, p, 2)))
> 3 tests, 3 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/realpow.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/realpow.m
> ***** test stk_test_dfbinaryop(@realpow, rand(7, 2), .1 + rand(7, 2));
> ***** test stk_test_dfbinaryop(@realpow, rand(7, 2), .1);
> ***** error stk_test_dfbinaryop(@realpow, rand(7, 2), .1 + rand(7, 3));
> 3 tests, 3 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/exp.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/exp.m
> ***** test
> u = rand (4, 3); x = stk_dataframe (u); v = exp (x);
> assert (strcmp (class (v), class (u)) && isequal (v, exp (u)))
> 1 test, 1 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/vertcat.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/vertcat.m
> ***** shared u, v
> u = rand (3, 2);
> v = rand (3, 2);
> ***** test
> x = stk_dataframe (u);
> y = stk_dataframe (v);
> z = vertcat (x, y);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v]));
> ***** test % the same, with row names this time
> x = stk_dataframe (u, {}, {'a'; 'b'; 'c'});
> y = stk_dataframe (v, {}, {'d'; 'e'; 'f'});
> z = vertcat (x, y);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v]));
> assert (all (strcmp (z.rownames, {'a'; 'b'; 'c'; 'd'; 'e'; 'f'})));
> ***** test % the same, with row names only for the first argument
> x = stk_dataframe (u, {}, {'a'; 'b'; 'c'});
> y = stk_dataframe (v);
> z = vertcat (x, y);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v]));
> ***** test % incompatible variable names
> u = rand (3, 1); x = stk_dataframe (u, {'x'});
> v = rand (3, 1); y = stk_dataframe (v, {'y'});
> z = vertcat (x, y);
> assert (isequal (z.colnames, {}));
> warning: Incompatible column names !
> The output of vertcat will have no column names.
> warning: called from
> vertcat at line 82 column 9
> __test__ at line 5 column 4
> test at line 682 column 11
> /tmp/tmp.mdUJyifIiB at line 150 column 31
>
> ***** test
> x = stk_dataframe (u);
> z = vertcat (x, v);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v]));
> ***** test % the same, with row names for the first argument
> x = stk_dataframe (u, {}, {'a'; 'b'; 'c'});
> z = vertcat (x, v);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v]));
> ***** test
> y = stk_dataframe (v);
> z = vertcat (u, y);
> assert (isa (z, 'stk_dataframe') && (isequal (double (z), [u; v])));
> ***** test
> x = stk_dataframe (u);
> y = stk_dataframe (v);
> z = vertcat (x, y, u, v);
> assert (isa (z, 'stk_dataframe') && isequal (double (z), [u; v; u; v]));
> ***** shared x, y
> x = stk_dataframe (rand (2, 3), {'a', 'b', 'c'});
> y = stk_dataframe (rand (3, 2), {'a', 'b'});
> y = horzcat (y, rand(3, 1)); % last column name is missing
> ***** test
> z = vertcat (x, y);
> assert (isequal (z.colnames, {'a' 'b' 'c'}))
> ***** test
> z = vertcat (y, x);
> assert (isequal (z.colnames, {'a' 'b' 'c'}))
> 10 tests, 10 passed, 0 known failure, 0 skipped
> [inst/arrays/@stk_dataframe/subsref.m]
> >>>>> /<<PKGBUILDDIR>>/inst/arrays/@stk_dataframe/subsref.m
> ***** shared x, s, t, data
> x = stk_dataframe(rand(3, 2));
> s = {'a'; 'b'; 'c'};
> t = {'xx' 'yy'};
> ***** test
> x = set(x, 'rownames', s);
> assert (isequal (x.rownames, s))
> assert (isequal (x.rownames{2}, 'b'))
> ***** test
> x = set(x, 'colnames', t);
> assert (isequal (x.rownames, s))
> assert (isequal (x.colnames, t))
> assert (isequal (x.colnames{2}, 'yy'))
> ***** shared u, data
> u = rand(3, 2);
> data = stk_dataframe(u, {'x1', 'x2'});
> ***** assert (isequal (data.x2, u(:, 2)))
> ***** assert (data.x2(3) == u(3, 2))
> ***** error t = data.toto;
> terminate called after throwing an instance of 'octave::execution_exception'
> what(): __get_column_number__: There is no variable named toto.
> fatal: caught signal Aborted -- stopping myself...
> Aborted
> make: *** [debian/rules:5: binary] Error 134
The full build log is available from:
http://qa-logs.debian.net/2024/04/20/octave-stk_2.8.1-1_unstable-armhf.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---