From cb35cce499e64a7a80510d677a75765cfb0595bc Mon Sep 17 00:00:00 2001 From: zo <44142765+zoj613@users.noreply.github.com> Date: Sat, 28 Nov 2020 10:55:57 +0200 Subject: [PATCH] FIX: fix assignment error in htnorm module --- src/Makefile | 2 +- src/htnorm.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 6ca956f..f4f8579 100644 --- a/src/Makefile +++ b/src/Makefile @@ -13,7 +13,7 @@ CFLAGS := -std=c11 -fwrapv -O3 -fPIC -funroll-loops -pedantic -g -pthread \ # set default include directory for BLAS include files INCLUDE_DIR ?= /usr/include -override INCLUDE_DIRS := -I../include -I$(INCLUDE_DIR) +override INCLUDE_DIR := -I../include -I$(INCLUDE_DIR) LDIR := ../lib # set default include directory for BLAS shared library LIBS_DIR ?= /usr/lib diff --git a/src/htnorm.c b/src/htnorm.c index 3e55df2..47e85be 100644 --- a/src/htnorm.c +++ b/src/htnorm.c @@ -13,8 +13,8 @@ hyperplane_truncated_norm_1d_g(const ht_config_t* conf, double* out) { bool diag = conf->diag; size_t ncol = conf->gncol; - double r = *(conf->r); - const double* cov = conf->mean; + const double r = *(conf->r); + const double* cov = conf->cov; const double* g = conf->g; double alpha = 0, g_cov_g = 0;