sparse-array Questions

2

Solved

Can anyone suggest a fast, efficient method for storing and accessing a sparse octree? Preferably something that can be easily implemented in HLSL. (I'm working a raycasting/voxel app) In this i...
Booty asked 22/5, 2011 at 0:6

1

What is an appropriate data structure to represent a sparse tesnor in C++? The first option that comes to mind is a boost::unordered_map since it allows operations like fast setting and retrieval o...
Fi asked 9/8, 2010 at 21:36

2

Solved

I am implementing a templated sparse_vector class. It's like a vector, but it only stores elements that are different from their default constructed value. So, sparse_vector would store the lazily...
Dramaturge asked 11/5, 2010 at 6:14

3

Solved

I can create a sparse php array (or map) using the command: $myarray = array(10=>'hi','test20'=>'howdy'); I want to serialize/deserialize this as JSON. I can serialize it using the command...
Gilly asked 20/3, 2010 at 20:48

2

Solved

I've got a sparse array that I want to represent in JSON. For example: -10 => 100 -1 => 102 3 => 44 12 => -87 12345 => 0 How can I do this? Can I do this?
Sigma asked 14/11, 2009 at 8:11

© 2022 - 2024 — McMap. All rights reserved.