6 Nov 2023 |
@hasnep:matrix.org | I miss Pluto every time I have to make a notebook with Python, I should just use Pluto and PyCall.jl 😂 | 03:12:09 |
@ericjmorey:matrix.org | I'm not sure what I think of either, but the bit I've used Jupyter has left me a bit frustrated. | 03:22:55 |
@hasnep:matrix.org | I find Jupyter annoying because of the statefullness, I don't like the idea that I could delete some code that I needed and break the notebook without knowing | 03:26:43 |
@hasnep:matrix.org | So when I use jupyter I'm constantly restarting the kernel and rerunning all the cells from top to bottom | 03:28:22 |
@hasnep:matrix.org | Pluto just does all that for me automatically, and without rerunning stuff that hasn't changed! | 03:28:54 |
@ericjmorey:matrix.org | Thanks for sharing! | 14:15:51 |
7 Nov 2023 |
Andreas Weh | Pluto plays also much nicer with `git`.
Jupyter got much better with the latest major release. But for teaching and short running things I still prefer Pluto. | 21:13:45 |
qwjyh | Pluto with PlutoUI is a really great framework for small interactive application. Unlike jupyter, cell ordering doesn't affect execution ordering, so you can put use interfaces at the top and logics later. | 21:25:46 |
qwjyh | * Pluto with PlutoUI is a really great framework for small interactive application. Unlike jupyter, cell ordering doesn't affect execution ordering, so you can put user interfaces at the top and logics later. | 21:26:06 |
12 Nov 2023 |
| Andre Goios joined the room. | 06:12:20 |
13 Nov 2023 |
| @ericjmorey:matrix.org changed their display name from ericjmorey to 🪐. | 00:33:02 |
| @ericjmorey:matrix.org changed their profile picture. | 16:33:01 |
| @tuxtuxtuxtuxtux:opensuse.org joined the room. | 19:15:02 |
14 Nov 2023 |
@tuxtuxtuxtuxtux:opensuse.org | Hi everyone | 07:52:18 |
@hasnep:matrix.org | Hi Tux! | 09:02:09 |
15 Nov 2023 |
| rollskatflat joined the room. | 10:36:56 |
rollskatflat | Hi, I am new to Julia, but have done plenty of MATLAB and scientific Python in my time.
I am just trying to understand how to vectorise an execution.
a .* b works just fine.
But now I have created a Vector{SVector} from the Rotations.jl package
I have used
push!(myVec, mySVec)
To build the data structure | 10:41:03 |
rollskatflat | I then create a rotation matrix using QuatRotation, to create the quaternion.
myQuat * myVec[1]
Returns a result as expected
As do all subsequent indices
But, when I go
myVec .* myQuat | 10:42:39 |
rollskatflat | DimensionMismatch: arrays could not be broadcast to a common size | 10:43:21 |
rollskatflat | My guess is SVector is actually a static Vector and the .* Is trying to do an element wise multiply across the two, rather than treating myVec as a single value. | 10:53:33 |
qwjyh | .* treated Vector{SVector} as you want. In this case, myQuat is also broadcasted and cause dimension mismatch. To handle this correctly, you need to wrap myQuat with Ref .
julia> Ref(my_quat) .* my_vec
5-element Vector{SVector{3, Float64}}:
For more information, see .* (and broadcast ) in the help mode.
| 14:00:38 |
qwjyh | * .* treated Vector{SVector} as you wanted. In this case, myQuat is also broadcasted and cause dimension mismatch. To handle this correctly, you need to wrap myQuat with Ref .
julia> Ref(my_quat) .* my_vec
5-element Vector{SVector{3, Float64}}:
For more information, see .* (and broadcast ) in the help mode.
| 14:00:51 |
qwjyh | * Indeed, .* treated Vector{SVector} as you wanted. In this case, myQuat is also broadcasted and cause dimension mismatch. To handle this correctly, you need to wrap myQuat with Ref .
julia> Ref(my_quat) .* my_vec
5-element Vector{SVector{3, Float64}}:
For more information, see .* (and broadcast ) in the help mode.
| 15:52:44 |
rollskatflat | Thank you so much! | 20:05:44 |
20 Nov 2023 |
| Songtao Gui joined the room. | 07:11:30 |
28 Nov 2023 |
| @norliana:matrix.org joined the room. | 18:50:55 |
| @norliana:matrix.org left the room. | 19:13:55 |
30 Nov 2023 |
| @finlifin:matrix.org left the room. | 15:34:47 |
1 Dec 2023 |
| @malte:maltee.de joined the room. | 10:30:28 |
@malte:maltee.de | I'm trying to convert a system from discrete to continuous, not by using d2c but by replacing z^-1 by exp(-s*T) as this provides a more accurate representation. How would I do that (for a MIMO state space system)? | 10:41:38 |