API: some fixes with 1D slices

This commit is contained in:
Philippe Tillet
2015-10-06 16:34:47 -04:00
parent 8daf13da2e
commit 07b8ba20de
7 changed files with 30 additions and 13 deletions

View File

@@ -312,8 +312,14 @@ view array::operator[](slice const & e1)
return view(*this, e1);
}
view array::operator()(slice const & e1, slice const & e2)
{ return view(*this, e1, e2); }
view array::operator()(slice const & s1, slice const & s2)
{ return view(*this, s1, s2); }
view array::operator()(int_t x, slice const & s)
{ return (*this)({x, x+1}, s); }
view array::operator()(slice const & s, int_t x)
{ return (*this)(s, {x, x+1}); }
//---------------------------------------
/*--- View ---*/