From deff114971212bac5db5ef9a68bcabffe21f5cec Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 16 Sep 2014 11:30:27 -0400 Subject: [PATCH] Relax type of sum for weights This allows constructing a WeightVec from a DataVector with NAs. --- src/weights.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weights.jl b/src/weights.jl index ad0968091..91d23ed9d 100644 --- a/src/weights.jl +++ b/src/weights.jl @@ -1,7 +1,7 @@ ###### Weight vector ##### -immutable WeightVec{W<:Real,Vec<:RealVector} +immutable WeightVec{W,Vec<:RealVector} values::Vec sum::W end