API: some fixes with 1D slices
This commit is contained in:
@@ -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 ---*/
|
||||
|
Reference in New Issue
Block a user