Python: fixed compilation issues

This commit is contained in:
Philippe Tillet
2016-04-08 18:46:59 -04:00
committed by Philippe Tillet
parent 97a0d65a4d
commit 6bc5d9e1cb
6 changed files with 31 additions and 19 deletions

View File

@@ -51,6 +51,11 @@ INSTANTIATE(float);\
INSTANTIATE(double);
//General
array_base::array_base(tuple const & shape, numeric_type dtype, int_t start, tuple const & stride, driver::Buffer const & data) :
dtype_(dtype), shape_(shape), start_(start), stride_(stride), context_(data.context()), data_(data),
T(isaac::trans(*this))
{}
array_base::array_base(tuple const & shape, numeric_type dtype, int_t start, tuple const & stride, driver::Context const & context) :
dtype_(dtype), shape_(shape), start_(start), stride_(stride), context_(context), data_(context_, dsize()),
T(isaac::trans(*this))