Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am looking for a symbol to represent the operation of taking unique values from a vector. So, say the symbol was $\theta$:

$v = [0, 0, 0, 1, 1, 1, 3, 1, 2, 0]$

$\theta(v) = [0, 1, 3, 2]$

Or is this something that just isn't defined?

Thanks

EDIT

Thanks all for your help here. Your answers and comments have led me to realise that doing this operation on a vector is not really what I want to do; using a set makes much more sense logically.

(Background: I have many coordinates $\boldsymbol{p}_i = [x_i, y_i, z_i]$ in 3D space, which I then perform a rounding function on so they are equally sampled. However, there will be many duplicates points at each new coordinate, so I remove the duplicated $\boldsymbol{p}$ points to get the final set of points. So it makes sense to define a set $\boldsymbol{P} = \{\boldsymbol{p}_1, ... \boldsymbol{p}_i, \cdot \boldsymbol{p}_n\}$).

share|improve this question
    
I don't know of any universal notation for this kind of operation, so you'll probably have to define $\theta$ yourself (like you just did). At least $\theta$ is linear, so it'll have nice properties. –  Gunnar Þór Magnússon Dec 20 '10 at 15:01
4  
@Gunnar Magnusson: Linearity does not make sense here, because we are dealing with integer vectors. Also, $\theta$ is not additive: while $[0,1]$ is mapped to $[0,1]$ and $[1,0]$ is mapped to $[1,0]$, $[0,1]+[1,0]=[1,1]$ is mapped to $[1]$. –  Rasmus Dec 20 '10 at 15:12
1  
@Rasmus How do you know that the OP is only interested in integer vectors? This restriction doesn't appear anywhere in the post. –  Alex B. Dec 20 '10 at 15:45
    
@Rasmus: So is $\theta$ supposed to return the set of coordinates of a vector with some ordering? I thought the OP just wanted to pick out certain coordinates, like he does in $\theta$ where he picks (for example) the 1st, 4th, 7th and 9th ones. Then the function is linear from $\mathbb R^{10}$ to $\mathbb R^4$. –  Gunnar Þór Magnússon Dec 20 '10 at 16:48
    
@Alex Bartel: I deduced this from the fact that the OP uses only integers as coordinates. That's of course not a well-founded logical argument, I admit. ;) –  Rasmus Dec 20 '10 at 17:05

2 Answers 2

up vote 3 down vote accepted

A common way to express that you are throwing away duplicates is to translate a sequence into a set. A set is commonly understood as an unordered collection of distinct objects. It is usually denoted using curly braces. So you could write $\theta(v) = \{v_i\}_{i\in\{1,\ldots,n\}}$, where $v=[v_1,\ldots,v_n]$.

share|improve this answer
    
I think the value of $\theta$ is supposed to be a vector again, not just a set. That is, I think the OP wants to endow the set of entries of the input vector with the total order given by "appearing earlier". –  Rasmus Dec 20 '10 at 17:10
    
Aha. So am I right in thinking that taking the unique elements of a set S would always return S? –  Bill Cheatham Dec 20 '10 at 17:27
    
@Bill Yes, that's right. –  Alex B. Dec 20 '10 at 17:46

There is no standard notation for the set of coefficients of a vector. Indeed, there's not even any standard notation for the set of coefficients of a polynomial (which would be useful when taking the content, i.e. the gcd / ideal generated by the coefficients).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.