octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59840] repmat and repelem slower than needed,


From: anonymous
Subject: [Octave-bug-tracker] [bug #59840] repmat and repelem slower than needed, faster implimentation suggested
Date: Fri, 8 Jan 2021 08:16:50 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Follow-up Comment #1, bug #59840 (project octave):

Your timing data is acknowledged. It appears from your code that you are only
looking for 2-dimensional replication, not for 3 or more dimensions. Is this
correct? If that is the case, then that could account for speed differences.
The standard repmat and repelem use varargin to allow for multiple arguments
to maintain Matlab compatibility for calls like repmat(rand(2,3),2,3,4,5).

Would you be willing to write an improved repmat and repelem that allows for
multiple arguments while maintaining the speed of your kron-based approach?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59840>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]