Sender | Message | Time |
---|---|---|
22 Dec 2022 | ||
neoabs | Download image.png | 07:48:34 |
neoabs | Download image.png | 07:49:23 |
neoabs | Download image.png | 07:50:36 |
neoabs | I think you can also modify it within local scope. However as you are running version 1 it will complete even if function definition is modified to version two before end | 07:51:27 |
24 Dec 2022 | ||
Null_A | Download Screenshot 2022-12-23 at 7.19.38 PM.png | 03:19:53 |
Null_A | In reply to @jasonjckn:matrix.orgThat's interesting, not exactly what I meant, wanted while true { afn() } , to redefine afn using Revise , I got the solution though ^ | 03:20:09 |
Null_A | Thanks for your help no less | 03:20:57 |
Andreas Weh | Is there a best practice in Julia for views? It feels like there should be a smarter way for a modern language. | 08:20:43 |
neoabs | X = view(array, dims) | 10:02:08 |
neoabs | In reply to @wehandre:matrix.physik.uni-augsburg.dedoes above help? | 10:40:12 |
Andreas Weh | In reply to @neoabs:matrix.orgMost of the time, I need begin /end , so I thing I have to use things likeX = @view(array[dims]) | 12:09:38 |
Andreas Weh | Typically, I have things like@views @. x[i:j] = a[k:l] + b[m:n] which is not exactly readable and seems like it produces more complicated lowered code. | 12:12:21 |
neoabs | you can define variable to be view.if you use it later it does not need to have @view in fornt. https://discourse.julialang.org/t/could-you-explain-what-are-views/17535 here is example https://www.juliabloggers.com/the-view-and-views-macros-are-you-sure-you-know-how-they-work/ | 12:15:08 |
neoabs | try:
| 12:16:52 |
neoabs | * try:
| 12:25:53 |
neoabs | * try:
| 12:26:16 |
neoabs | does it help?> | 12:26:33 |
neoabs | I am not sure if line 3 works as intended but it seems you need to reference view as a[:] or it changes type to array instead of view | 12:27:17 |
neoabs |
Wonder if it is a bug or feature | 12:29:05 |
Andreas Weh | Thanks for the hint, I'll give it a try | 14:21:32 |
neoabs | Andreas Weh: Merry Christ-Mass | 22:21:34 |
25 Dec 2022 | ||
david_alfred | Merry Christmas, everyone | 05:38:06 |
Andreas Weh | Thanks, merry Christmas to you, too. | 10:13:11 |
4 Jan 2023 | ||
onepointtwentyonegigawatts joined the room. | 14:54:34 | |
Andreas Weh | Is there a fast way to count over SubArrays?
I get the following timings
Avoiding | 22:21:32 |
Andreas Weh | The example is of course constructed. My main points would be the possibility to just pass the SubArrays , sucht that my numerical functions don't have to care about bounds. | 22:23:11 |
Andreas Weh | * Is there a fast way to count over
I get the following timings
Avoiding | 22:23:18 |
Andreas Weh | The following issue seems to contain some hints: The following code doesn't perform as bad as
but it is still slower and contains some allocations:
| 23:14:07 |
Andreas Weh | * The following issue seems to contain some hints: The following code doesn't perform as bad as
but it is still slower and contains some allocations:
| 23:14:45 |
5 Jan 2023 | ||
Marco Eduardo Rodrigues da Silva joined the room. | 09:22:04 |