Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full repelemM support #4

Open
aminya opened this issue Sep 22, 2019 · 0 comments
Open

Full repelemM support #4

aminya opened this issue Sep 22, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@aminya
Copy link
Member

aminya commented Sep 22, 2019

Now repelemM(V, count) where V is a vector and count is a scalar is supported.
Full support will be added when the following pull request is merged to Julia:
JuliaLang/julia#29560

Different tasks of this to do plan:

  1. Helping Pass vector of lengths to repeat; close #16443 JuliaLang/julia#29560 to be merged to Julia
  2. Adding all needed methods to fully support repelemM(V, count)

Achievement check:

mRepelem1 = repelemM([1 2 3 4], 3) 

# should give:
[1 1 1 2 2 2 3 3 3 4 4 4]


mRepelem2 = repelemM([1 2 3 4], (3,2,1,1)) 

# should give:
[1 1 1 2 2 3 4]


mRepelem3 = repelemM([1 2; 3 4], 3, 2) 

# should give:
 [ 1     1     2     2 ;
   1     1     2     2 ;
   1     1     2     2 ;
   3     3     4     4 ;
   3     3     4     4 ;
   3     3     4     4 ]

mRepelem4=repelemM([1 2; 3 4],1,[2 3])

# should give:

[1     1     2     2     2;
 3     3     4     4     4] 
   
aminya added a commit that referenced this issue Sep 22, 2019
Only for vector and a scalar pair (#4)
@aminya aminya added enhancement New feature or request help wanted Extra attention is needed labels Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant