using Revise
using SnpArrays
using LinearAlgebra
using Random
using LoopVectorization
using MendelIHT
using Test
# any n between 4097 and 4099 doesn't work!
n = 4097
p = 10000
x = simulate_random_snparray(undef, n, p) #defined in my package `MendelIHT.jl`
A = SnpLinAlg{Float64}(x, model=ADDITIVE_MODEL, impute=false, center=false, scale=false)
b = ones(p)
c = A * b
ctrue = convert(Matrix{Float64}, A) * b
@test all(c .≈ ctrue) # fails!
The above fails. It seems Mrem at this line is the culprit
MWE
The above fails. It seems
Mrem
at this line is the culprit