Mercurial > hg > octave-jordi
comparison src/oct-map.h @ 10755:6ba7937a6fa4
more array-like methods in octave_map
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 25 Jun 2010 10:47:14 +0200 |
parents | bee1b1a2e29a |
children | d808eb829d48 |
comparison
equal
deleted
inserted
replaced
10754:92eb5fb58ebc | 10755:6ba7937a6fa4 |
---|---|
361 octave_scalar_map checkelem (octave_idx_type i, octave_idx_type j) const; | 361 octave_scalar_map checkelem (octave_idx_type i, octave_idx_type j) const; |
362 | 362 |
363 octave_scalar_map | 363 octave_scalar_map |
364 checkelem (const Array<octave_idx_type>& ra_idx) const; | 364 checkelem (const Array<octave_idx_type>& ra_idx) const; |
365 | 365 |
366 octave_scalar_map operator () (octave_idx_type n) const | |
367 { return checkelem (n); } | |
368 octave_scalar_map operator () (octave_idx_type i, octave_idx_type j) const | |
369 { return checkelem (i, j); } | |
370 | |
371 octave_scalar_map | |
372 operator () (const Array<octave_idx_type>& ra_idx) const | |
373 { return checkelem (ra_idx); } | |
374 | |
366 octave_map squeeze (void) const; | 375 octave_map squeeze (void) const; |
367 | 376 |
368 octave_map permute (const Array<int>& vec, bool inv = false) const; | 377 octave_map permute (const Array<int>& vec, bool inv = false) const; |
369 | 378 |
370 dim_vector dims (void) const { return dimensions; } | 379 dim_vector dims (void) const { return dimensions; } |
391 octave_map index (const Array<idx_vector>& ia, | 400 octave_map index (const Array<idx_vector>& ia, |
392 bool resize_ok = false) const; | 401 bool resize_ok = false) const; |
393 | 402 |
394 octave_map index (const octave_value_list&, bool resize_ok = false) const; | 403 octave_map index (const octave_value_list&, bool resize_ok = false) const; |
395 | 404 |
405 octave_map column (octave_idx_type k) const; | |
406 octave_map page (octave_idx_type k) const; | |
407 | |
396 void assign (const idx_vector& i, const octave_map& rhs); | 408 void assign (const idx_vector& i, const octave_map& rhs); |
397 | 409 |
398 void assign (const idx_vector& i, const idx_vector& j, const octave_map& rhs); | 410 void assign (const idx_vector& i, const idx_vector& j, const octave_map& rhs); |
399 | 411 |
400 void assign (const Array<idx_vector>& ia, const octave_map& rhs); | 412 void assign (const Array<idx_vector>& ia, const octave_map& rhs); |