Questions tagged [lookup-tables]

A look-up table is an array or matrix of data that contains items that can be searched. Lookup tables may be arranged as key-value pairs, where the keys are the data items being searched (looked up) and the values are either the actual data or pointers to where the data are located.

A look - up table is an array or matrix of data that contains items that are searched. Lookup tables may be arranged as key-value pairs, where the keys are the data items being searched (looked up) and the values are either the actual data or pointers to where the data are located.

798 questions
7
votes
1 answer

Where lookup tables should be placed in a microservices architecture?

In a microservices architecture, each microservice has its own database and tables should not be duplicated in different databases. But there are tables, like lookup tables (called also reference tables), that are needed by multiple…
Bacem
  • 181
  • 1
  • 10
7
votes
2 answers

Finding what hard drive sectors occupy a file

I'm looking for a nice easy way to find what sectors occupy a given file. My language preference is C#. From my A-Level Computing class I was taught that a hard drive has a lookup table on the first few KB of the disk. In this table there is a…
Kratz
  • 487
  • 2
  • 6
  • 13
7
votes
3 answers

Implementing a lookup table that takes T and returns attributes on method of type List

I have a class that manages collections of objects e.g. List and List which are atribute. I'd like to find a way to get a reference to each of those collections in a lookup so I can implement methods such as Add(myCar) or Add(myCar)…
Brendan
  • 18,771
  • 17
  • 83
  • 114
7
votes
0 answers

How to apply *.cube Lut in android bitmaps?

I have lut files in .cube format. How to use those .cube files in android for applying the filter effects? I am doing sample in android, applying the filter effects for images. I know how to use the lut's to apply the filters but i don't have any…
Rajesh
  • 521
  • 5
  • 19
7
votes
2 answers

Creating a list of symbols in latex

I'm trying to get an auto generated list of symbols in my latex project. Here is the macro that I have so far... \newcommand{\addsymbol}[3]{% \symboldisplay{#1}{#2}\\% \setelem{#3}{#1} } \newcommand{\symboldisplay}[2]{% $#1$…
Brian
  • 73
  • 1
  • 1
  • 3
7
votes
9 answers

What is the most efficient way to do look-up table in C#

What is the most efficient way to do look-up table in C# I have a look-up table. Sort of like 0 "Thing 1" 1 "Thing 2" 2 "Reserved" 3 "Reserved" 4 "Reserved" 5 "Not a Thing" So if someone wants "Thing 1" or "Thing 2" they pass in 0 or 1. But they…
Maestro1024
  • 3,173
  • 8
  • 35
  • 52
7
votes
1 answer

CUDA memory for lookup tables

I'm designing a set of mathematical functions and implementing them in both CPU and GPU (with CUDA) versions. Some of these functions are based upon lookup tables. Most of the tables take 4KB, some of them a bit more. The functions based upon lookup…
Spiros
  • 2,156
  • 2
  • 23
  • 42
7
votes
1 answer

Look-up vs relationship Microsoft Access

I'm developing a Microsoft Access 2013 based information system. One of the client's demands was to simplify the data entry process by using combo box with available values. For example, instead of entering agentID the client asked to let the user…
Mike
  • 14,010
  • 29
  • 101
  • 161
7
votes
3 answers

C++ exp LUT (lookup table)

In a C++ CPU-bound simulation that I'm writing, I've traced a bottleneck via valgrind in my program to cmath::exp. It currently eats over 40% of my simulation time. I can bound the input to a relatively small domain, but I'd like to control the…
Hooked
  • 84,485
  • 43
  • 192
  • 261
6
votes
2 answers

Lookup table in Latex

I have a bunch of automatically generated LaTeX code with hypertargets of the form "functionname_2093840289fad1337", i.e the name of a function with a hash appended. I would like to refer to those functions from the rest of the document by only…
Laserallan
  • 11,072
  • 10
  • 46
  • 67
6
votes
4 answers

Data structure with efficient manipulation and retrieval by both key and index

I'm looking for a data structure with the functionality of eg. the OrderedDictionary in .NET, that is to say an associative collection (i.e. one that associates a key with a value) that maintains element order (just like a normal List does). It…
DeCaf
  • 6,026
  • 1
  • 29
  • 51
6
votes
1 answer

OpenGL Image warping using lookup table

I am working on an Android application that slims or fatten faces by detecting it. Currently, I have achieved that by using the Thin-plate spline algorithm. http://ipwithopencv.blogspot.com.tr/2010/01/thin-plate-spline-example.html The problem is…
sedatli
  • 97
  • 3
6
votes
2 answers

Recolor sprites on the fly

I need to replace colors of the sprite. Some example founded in google Here is I've found a looks like working solution for Unity - [How to Use a Shader to Dynamically Swap a Sprite's Colors][2] How to port it to cocos2d-x? Can someone please…
KAMIKAZE
  • 420
  • 6
  • 27
6
votes
4 answers

Lookup table for unhashable in Python

I need to create a mapping from objects of my own custom class (derived from dict) to objects of another custom class. As I see it there are two ways of doing this: I can make the objects hashable. I'm not sure how I would do this. I know I can…
pafcu
  • 7,808
  • 12
  • 42
  • 55
6
votes
2 answers

Is placing code and read-only data it uses right next to each other a good idea?

While writing a lookup-table related answer for another question I was reminded of something that I always wonder about: is it smart to locate a small amount of non-code data needed by a function right next to the function, instead of the…
BeeOnRope
  • 60,350
  • 16
  • 207
  • 386
1 2
3
53 54