Maybe we should use a couple of examples. I agree that Tomas’s example is an
important one to include to make people understand things.
I’d also suggest including one example that produces a higher-dimensional
output than the input. This is one of the big differences between repeat and
repmat.
I’d like to add the following example too, of using *both* inner and outer,
to show off the flexibility of repeat:
julia> repeat(A, inner=[1,2], outer=[2,1])
4x4 Array{Int64,2}:
1 1 2 2
3 3 4 4
1 1 2 2
3 3 4 4
Until I had tried that in the REPL myself, I didn’t really trust tha
For outer, I think that it would be clearer to say that it repeats (or
clones?) the whole array along the specified dimensions. For inner, I think
it's ok.
Looking at the tests for repeat, I think we could use this as an example:
As an illustrative example, let's consider array A:
A = [
Rewriting the documentation for repeat would be great. I’m the guilty party for
that piece of documentation and agree that it’s not very good. Rewriting it
from scratch is probably a good idea.
I’m not sure I think `tile` is much better than `outer`. Maybe we should use
something like `pereleme
Hi, yesterday I asked for help in the channel to ask how I could achieve
something like Matlab's repmat(): Julia also has a repmat() function, but
only for two-dimensional arrays, whereas Matlab's implementation works for
as many dimensions as you want. I found about repeat() but didn't
underst