spatial-lang icon indicating copy to clipboard operation
spatial-lang copied to clipboard

Cat API

Open mattfel1 opened this issue 7 years ago • 1 comments

Do we have an API for concatenate? Or is the only way to do it today is

  1. Make a struct or pack the elements together
  2. Cast them to the full bitwidth, <<, and ^ the numbers together

?

mattfel1 avatar Feb 13 '18 22:02 mattfel1

At the moment the only API we have for this is

val concated = Vector.concatN(Seq(vec1, vec2, ...))

This assumes all the vectors have the same type. We should probably add a more general API

dkoeplin avatar Feb 14 '18 00:02 dkoeplin