Catch up on stories from the past week (and beyond) at the Slashdot story archive


Forgot your password?
For the out-of-band Slashdot experience (mostly headlines), follow us on Twitter, or Facebook. ×

Comment: Re:Kids don't understand sparse arrays (Score 1) 115 115

It all depends on what you want to do with your matrices. Various operations have various costs in different sparse matrix formats. The standard ones are COO or coordinate format: a list of triples (i, j, val); DOK or dictionary of keys format: the hashmap you are thinking of; LIL or list of lists format: a list for each row and a list if pairs (j, val) in each list entry; CSR/CSC or compact sparse row/column: an array of indices where each row starts, an array of column indices and an array of values.

COO and DOK are great for changing sparsity structure; LIL is very useful if you have a lot of row-wise (or column-wise) operations, or need to manipulate rows regularly. CSR is great for matrix operations such as multiplication, addition etc. You use what suits your usecase, or change between formats (relatively cheap) as needed.

Comment: Re:How is this news for nerds? (Score 1) 1052 1052

by cold fjord (#50009597) Attached to: Supreme Court Ruling Supports Same-Sex Marriage

It would be great if that were true, but it probably isn't in the long run. Children don't have to consent to lots of things that happen to them now. There are other societies that have or have had child brides, so there are obviously social mechanisms to enable that. With diversity and immigration policies brining in more and more people from those societies I wouldn't be surprised if they considerably outnumber the gay population now. That is before you even consider traditional pedophiles. Over time advocates for minor-adult sex will have more political power. Speaking of political power, I hear there is a former Speaker of the House paying millions in hush money over sex with a minor decades ago. Besides, there are 50 years of prep coming to enable it, academicians working on normalizing minor-adult sex now, just as there were people doing that for homosexuality decades ago. In some parts of society, such as Hollywood, powerful people are known as child abusers, and nothing is said. Fifty years ago homosexual marriage couldn't happen. Today child marriage "can't happen," but that isn't likely to remain true as things stand. Standards were destroyed to enable homosexual marriage, they won't magically reappear when needed to stop child marriages.

Comment: Re:Unclear (Score 1) 16 16

by smitty_one_each (#50008649) Attached to: Thanks, Obama!
Let me be perfectly clear. Christianity may be my personal life's meaning. It informs my church activities explicitly, my online interactions less so, and is mostly implicit in business activities. That is, I don't run around evangelizing on the job, for all my work activities are not in opposition to my faith.
Government is a wholly secular affair. Despite the occasional "In God We Trust" flourish, I'm quick to point out that "Christian nation" is an oxymoron. Christianity is not carried out at the national level, and the Carpenter didn't lay it down for the United States as such.
All of which leads up to my bewilderment at

You sound more Randian than Christian.

Why wouldn't I? Christianity is like chess. It's all there, in plain view, the whole time. Countries are more like poker, bluffing and cheating like. . .governments.

The universe is like a safe to which there is a combination -- but the combination is locked up in the safe. -- Peter DeVries