Readit News logoReadit News
howling commented on Pandas 3.0   pandas.pydata.org/communi... · Posted by u/jonbaer
postalcoder · 2 months ago
I've migrated off of pandas to polars for my workflows to reap the benefit of, in my experience a 10-20x speedup on average. I can't imagine anything bringing me back short of a performance miracle. LLMs have made syntax almost a non-barrier.
howling · 2 months ago
Same. I don't even use LLM normally as I found polars' syntax to be very intuitive. I just searched my ChatGPT history and the only times I used it are when I'm dealing with list and struct columns that were not in pandas.
howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
at_compile_time · a year ago
>Even in 3D GA, some mixed-grade elements are not invertible.

This paper [1] claims to have inverses for general multivectors up to a certain dimension, but I've never needed them and haven't dived into it. I'm curious what the applications would be for general multivectors, I've never come across them in practice.

1 - https://www.sciencedirect.com/science/article/abs/pii/S00963...

howling · a year ago
The paper's introduction says:

we first establish algebraic product formulas for the direct computation of the Clifford product inverses of multivectors in Clifford algebras Cl(p, q), n = p + q \le 5, excluding the case of divisors of zero.

howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
aap_ · a year ago
I'm curious about your perspective on exterior algebra. So far I've mostly seen it as a special case of GA so my view is probably GA-tinted. I'm just curious how you even do any sort of transformations since the exterior product doesn't allow these sorts of things. It seems like it only gives you the "things" in your algebra with few ways to do anything with them. You seem to agree with the author of the article you linked to in that the most useful aspects of GA come from EA. I find this very hard to see, so maybe you can shed some light on it? E.g. how do you rotate a bivector in EA?
howling · a year ago
Sorry I forgot to answer your question: To rotate a bivector of the form v ^ w, just do R v ^ R w where R is the rotation matrix. This is a linear map so you can extend the operation linearly to arbitrary bivector.
howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
aap_ · a year ago
I'm curious about your perspective on exterior algebra. So far I've mostly seen it as a special case of GA so my view is probably GA-tinted. I'm just curious how you even do any sort of transformations since the exterior product doesn't allow these sorts of things. It seems like it only gives you the "things" in your algebra with few ways to do anything with them. You seem to agree with the author of the article you linked to in that the most useful aspects of GA come from EA. I find this very hard to see, so maybe you can shed some light on it? E.g. how do you rotate a bivector in EA?
howling · a year ago
There is no equivalent notion of rotor in EA. I would say its most important use is that you need it to define differential form in which we can define exterior derivative and integeration in arbitrary differentiable manifolds. It also enables to define determinant elegantly.
howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
at_compile_time · a year ago
You make it sound as though multivectors being invertible is a special case, when the opposite is true. In 2D and 3D GA, every non-zero k-vector and versor has an inverse. In PGA, every non-zero, non-ideal plane, line, and point, and versor has an inverse. The inverse is used all the damn time when composing and applying transformations and performing projections and rejections.

As to which is more fundamental, I don't think it matters. You could argue that the dot and exterior products are more fundamental because the geometric product is their sum (for vectors). You could also argue that the geometric product is more fundamental because it is simply the Cartesian product of two multivectors, and you derive the dot, exterior and commutator products by filtering that product by grade. Both definitions are true, and "fundamental" is both a matter of perspective and irrelevant to any practical concern.

howling · a year ago
> In 2D and 3D GA, every non-zero k-vector and versor has an inverse.

Of course by definition every versor has an inverse. The invertibility of k-vector gets hairier for higher dimensions though. Even in 3D GA, some mixed-grade elements are not invertible.

> As to which is more fundamental, I don't think it matters.

It doesn't matter mathematically but it matters pedagogically. GA enthusiasts seem to advocate teaching GA to anyone that has learnt linear algebra. I believe it is more appropriate to stick to teaching tensor algebra and its quotient exterior algebra. Then it is up to you to learn Clifford algebra as a generalization of exterior algebra; especially if you are a game dev, a physicist, or a topological K-theorist.

howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
hamish_todd · a year ago
The second paragraph of the conclusion: "Nor should we be trying to make everything look more like complex numbers and quaternions. Those are already weird and confusing; we should be moving away from them!"

It's also implicit in the thing he says throughout: "bivectors and trivectors are good, but there's no reason to add a scalar to a bivector or a trivector to a 1-vector, nor is there a reason to multiply such objects". A quaternion is a scalar and a bivector added together!

howling · a year ago
You have to read the first paragraph as well.

> I have given a lot of reasons why I think GA is problematic: the Geometric Product is a bad operation for most purposes. It really implements operator composition and is not a very fundamental or intuitive thing. Using a Clifford Algebra to implement geometry is an implementation detail, appropriate for some problems but not for general understandings of vector algebra and all of geometry. Giving it first-class status and then bizarrely acting like that is not weird is weird and alienating to people who can see through this trick.

If I understand him correctly, he means Clifford algebra is "appropriate for some problems" but we should "move away" from "giving it first-class status" as it is not more fundamental and often does not help students understand geometry better. I also readily admitted that it has some use cases in game physics in my comment.

howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
hamish_todd · a year ago
I did two streams where I went through this article and explained the many places it is wrong. The second part of the article has more maths in it, so most of the content is there, you can watch it here: https://www.twitch.tv/videos/2282548167

(it's very long so I plan to edit the two streams into a digestible 10-15m or something. His fault not mine I'd say!)

Probably other commenters have already said, but the biggest giveaway is how he says we should move away from quaternions, and then demonstrates little to no awareness of why quaternions are used in engineering (vital in gamedev for example, your animations will look awful without quaternions). Yes, quaternions are hard if you are completely married to the idea that everything in geometry is ""vectors"". But the games industry put on its big-boy pants and learned to use them - they wouldn't do that if the things weren't useful for something, so it's bit silly to write an article like this if you haven't figured out why that happened.

howling · a year ago
> but the biggest giveaway is how he says we should move away from quaternions

I'm sorry I must have missed that part. Can you point me to where did he say this?

howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
wvlia5 · a year ago
Yes, invertible like if you have a.x=b, then you can find x=b/a if . is the geometric product.

Why? Well, solving equations sounds somewhat useful, right?

howling · a year ago
First of all it is only invertible for some non-zero elements, especially if `a` is a linear combination of multivectors or we work in PGA that explicitly adds a basis vector of norm 0. Yes sometimes it is useful but that doesn't automatically makes it more fundamental than the inner product and exterior product.
howling commented on Geometric Algebra   bivector.net/... · Posted by u/agnishom
aap_ · a year ago
I think one of the coolest examples is probably classical mechanics. See the SIBGRAPI 2021 videos on https://bivector.net/doc.html
howling · a year ago
All of these stuff can be done in normal linear algebra. Some (not all) of the operations can be done more efficiently with GA in low dimensions. It is neither more concise nor more intuitive to understand than normal linear algebra.

u/howling

KarmaCake day189January 22, 2015View Original