Flip DenseVector?

26 views
Skip to first unread message

Bellaz89

unread,
Nov 5, 2019, 12:12:18 PM11/5/19
to Scala Breeze
Hi there.

I wonder if there is any method to flip a DenseVector in a **clean** way (https://docs.scipy.org/doc/numpy/reference/generated/numpy.flip.html). Right now I'm just creating a new vector with the content of the flipped data field array...

David Hall

unread,
Nov 5, 2019, 12:13:29 PM11/5/19
to scala-...@googlegroups.com
breeze.linalg.flipud should do what you want

-- David

On Tue, Nov 5, 2019 at 9:12 AM Bellaz89 <bell...@gmail.com> wrote:
Hi there.

I wonder if there is any method to flip a DenseVector in a **clean** way (https://docs.scipy.org/doc/numpy/reference/generated/numpy.flip.html). Right now I'm just creating a new vector with the content of the flipped data field array...

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/3193eb1e-910f-4fd6-8e4a-faa469938e98%40googlegroups.com.

Bellaz89

unread,
Nov 6, 2019, 3:00:48 AM11/6/19
to Scala Breeze
Thanks! I was looking only at the cheatsheet because of the 'out of date' disclaimer on the scaladoc documentation :P

-- Andrea

On Tuesday, November 5, 2019 at 6:13:29 PM UTC+1, David Hall wrote:
breeze.linalg.flipud should do what you want

-- David

On Tue, Nov 5, 2019 at 9:12 AM Bellaz89 <bell...@gmail.com> wrote:
Hi there.

I wonder if there is any method to flip a DenseVector in a **clean** way (https://docs.scipy.org/doc/numpy/reference/generated/numpy.flip.html). Right now I'm just creating a new vector with the content of the flipped data field array...

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages