comparison liboctave/idx-vector.h @ 4650:623f6262a8e9

[project @ 2003-11-23 23:17:46 by jwe]
author jwe
date Sun, 23 Nov 2003 23:17:47 +0000
parents f6a61399bc5c
children 14ab7b05a572
comparison
equal deleted inserted replaced
4649:f7ce581b27fb 4650:623f6262a8e9
30 #include <iostream> 30 #include <iostream>
31 31
32 #include "Array.h" 32 #include "Array.h"
33 33
34 class ColumnVector; 34 class ColumnVector;
35 class boolMatrix; 35 class boolNDArray;
36 class Matrix; 36 class NDArray;
37 class Range; 37 class Range;
38 38
39 class 39 class
40 idx_vector 40 idx_vector
41 { 41 {
62 data = 0; 62 data = 0;
63 } 63 }
64 64
65 idx_vector_rep (const ColumnVector& v); 65 idx_vector_rep (const ColumnVector& v);
66 66
67 idx_vector_rep (const Matrix& m); 67 idx_vector_rep (const NDArray& nda);
68 68
69 idx_vector_rep (const Range& r); 69 idx_vector_rep (const Range& r);
70 70
71 idx_vector_rep (double d); 71 idx_vector_rep (double d);
72 72
74 74
75 idx_vector_rep (char c); 75 idx_vector_rep (char c);
76 76
77 idx_vector_rep (bool b); 77 idx_vector_rep (bool b);
78 78
79 idx_vector_rep (const boolMatrix& bm); 79 idx_vector_rep (const boolNDArray& bnda);
80 80
81 idx_vector_rep (const idx_vector_rep& a); 81 idx_vector_rep (const idx_vector_rep& a);
82 82
83 ~idx_vector_rep (void) { delete [] data; } 83 ~idx_vector_rep (void) { delete [] data; }
84 84
164 { 164 {
165 rep = new idx_vector_rep (v); 165 rep = new idx_vector_rep (v);
166 rep->count = 1; 166 rep->count = 1;
167 } 167 }
168 168
169 idx_vector (const Matrix& m) 169 idx_vector (const NDArray& nda)
170 { 170 {
171 rep = new idx_vector_rep (m); 171 rep = new idx_vector_rep (nda);
172 rep->count = 1; 172 rep->count = 1;
173 } 173 }
174 174
175 idx_vector (const Range& r) 175 idx_vector (const Range& r)
176 { 176 {
200 { 200 {
201 rep = new idx_vector_rep (b); 201 rep = new idx_vector_rep (b);
202 rep->count = 1; 202 rep->count = 1;
203 } 203 }
204 204
205 idx_vector (const boolMatrix& bm) 205 idx_vector (const boolNDArray& bnda)
206 { 206 {
207 rep = new idx_vector_rep (bm); 207 rep = new idx_vector_rep (bnda);
208 rep->count = 1; 208 rep->count = 1;
209 } 209 }
210 210
211 idx_vector (const idx_vector& a) 211 idx_vector (const idx_vector& a)
212 { 212 {