Skip to content

Commit

Permalink
Merge pull request #12 from zoj613/v1_fix
Browse files Browse the repository at this point in the history
FIX: fix assignment error in htnorm module
  • Loading branch information
zoj613 authored Nov 28, 2020
2 parents 94c1d5a + cb35cce commit 82c2bab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/htnorm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 82c2bab

Please sign in to comment.