Use of the word "vector"

This is a discussion on Use of the word "vector" within the C Programming forums, part of the General Programming Boards category; What does the word "vector" mean when it's used as a computer term? I can't see a very strong apparent ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    54

    Use of the word "vector"

    What does the word "vector" mean when it's used as a computer term? I can't see a very strong apparent connection with physics vectors or math vectors.

    From the C++ type "vector" to "vector tables" and "status vectors" and "vectored interrupts", all I can get is that it's loosely synonymous with "stored in a contiguous or connected region of memory" or "array".

    Looking it up in my dictionary isn't much help, either. Is anyone familiar with its etymology?

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    Yes, it means something akin to array, but from a strict data type standpoint in C, an "array" is a type with specific capabilities and limitations, thus a new word was needed.

    A vector table is something akin to a branch table, if you are familiar with Assembler programming. In this sense, a vector (an offset in the table) is a pointer to something, sometimes a piece of code to execute or it could just be data.

    Todd
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    And there is the math term, too, in terms of coordinates.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  2. seg fault at vectornew
    By tytelizgal in forum C Programming
    Replies: 2
    Last Post: 10-25-2008, 01:22 PM
  3. please help with binary tree, urgent.
    By slickestting in forum C Programming
    Replies: 2
    Last Post: 07-22-2007, 07:55 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Wrong Output
    By egomaster69 in forum C Programming
    Replies: 7
    Last Post: 01-28-2005, 05:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21