HNHacker News
TopNewBestAskShowJobs

pvxc

14 karma · joined September 14, 2010

submissionscomments
pvxc··on I Hate Haml
Wow, it's the second coming of Troff!
pvxc··on Nasa.gov: Evidence of Climate Change
Both CO2 concentrations and the global temperature varied significantly over that period of Earth's history (~400-250 millions of years ago). Around 300 Mya, CO2 was comparable to what it is today and temperatures were likewise comparable. Around 400 Mya, CO2 was in the 4000ppm's and the temperature was likewise higher (by ~ 8 C). No contradiction.

Also, when discussing matters scientific, please cite your scientific sources --- otherwise the discussion is of little value. Like so:

http://www.nature.com/nature/journal/v449/n7159/abs/nature06...

http://dx.doi.org/10.1130/1052-5173(2004)014<4:CAAPDO...

pvxc··on How to game the U.S. higher-education system
> The only thing the degree does is get you an interview > you should have got through networking.

And maybe you also gained some useful skills.

pvxc··on Glibc vulnerability allows any user to get root access
Hard link creation can in recent Linux kernels be restricted, by SECURITY_YAMA_HARDLINKS config option which seems active by default at least on Ubuntu 10.10. So that platform is not vulnerable.
pvxc··on Programming is for Stupid People
Standing in front of a blackboard is known to reduce IQ temporarily but significantly.
pvxc··on 2010 Physics Nobel Prize (Graphene)
The main reason is probably that physicists found graphene more interesting to study than buckyballs. This can be quantified by looking at the number of articles published in top physics-only journals (e.g. Physical Review Letters).

There are a couple of good reasons why so: (i) graphene has a "simple" electronic and atomic structure that has interesting features of its own (Google for the Dirac cone), (ii) graphene flakes are big compared to buckies, so it's possible to study them with common methods that physicists like -- electronic transport, crystallographic methods, you name it, and (iii) many proposed applications of graphene e.g. in electronics fall close to physics.

In short: physicist are fond of simple things, and graphene is simple. So, Nobel prize in physics.

pvxc··on The future of R - pessimistic thoughts by R founder Ross Ihaka
Such large differences imply a difference in the algorithm

Indeed, you write

c = mat2.getcol(j)

norms[0, j] = scipy.linalg.norm(c.A)

which means (i) extract a sparse column vector, (ii) convert it to a dense vector, and (iii) compute the norm. Now, this should explain the speed difference. Looking at the nnz, a dense norm can take up to a factor 5e5/(1.2e8/1.3e7) ~ 54000 longer :)

The main issue here is that the linear algebra stuff under `scipy.linalg` doesn't know about sparse matrices, and tends to convert everything to dense first. You'd need to muck around with `m2.data` to go faster.