Opened 16 years ago

Closed 16 years ago

#316 closed request (fixed)

Create an Index class

Reported by: Peter Owned by: Peter
Priority: major Milestone: yat 0.4
Component: classifier Version:
Keywords: Cc:

Description

daughter of ticket:287

needs ticket:315

Index holds essentially only a SmartPtr?<std::vector<size_t> >.

Index can be created from void, Index, SmartPtr?<std::vector<size_t> >, or from two Index.

In the latter case you will have Index a(b, c) and a(i) equals b(c(i)) i.e. a.size()==c.size()

Further more we have a

size_t operator[](size_t) const;

and a

size_t size(void) const; 

Change History (3)

comment:1 Changed 16 years ago by Peter

We will probably also need a constructor

Index(size_t n)

that creates a n INdex of length n and for which index[i] = i

comment:2 Changed 16 years ago by Peter

Owner: changed from Markus Ringnér to Peter
Status: newassigned

comment:3 Changed 16 years ago by Peter

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.