libmir / mir

Mir (backports): Sparse tensors, Hoffman
http://mir.libmir.org
Boost Software License 1.0
210 stars 20 forks source link

Error: cannot append type int[] to type Slice!(2LU, int*) #381

Closed timotheecour closed 7 years ago

timotheecour commented 7 years ago

shouldn't this work?

unittest{
  auto a=[1,2,3,4].sliced(2,2);
  a~=[0,1];
}

what would be alternatives?

9il commented 7 years ago

Concatenation is not implemented yet, see https://github.com/libmir/mir/issues/213

9il commented 7 years ago

concatenation function for concatenation was added http://docs.algorithm.dlang.io/latest/mir_ndslice_concatenation.html#.concatenation