No more stack function?

The manual gives examples of Nd4j.stack()

as

INDArray batch = Nd4j.stack(0, sample1, sample2, sample3);

But java does not find any stack function, only vstack and hstack. What am I missing?

Does no one else use stack, or am I missing a very obvious workaround…?

I ended up reimplementing stack() by hand, which I am sure will introduce issues of slow computing later down the line… but it’s not the first time I find I have to write by hand something that I am sure other people are using correctly and I just can’t find my way around the library - I also have super basic issues with the “repeat()” function and no hits in the forum with the search function… I can’t help feeling I am trying to use this library very wrong.

Maybe it’s because I installed it from maven and the version over there seems quite outdated?

vstack or hstack not work for you?