Removing content from an Array
[Operations for Arrays (Please notice the detailed description!)]


Functions

Array< T > & Array::remove_row (unsigned i)
 Removes row "i" from the current non-empty array.
Array< T > Array::remove_col (unsigned k) const
 Removes column "k" from the current non-empty array.
Array< T > & Array::remove_cols (const Array< unsigned > idx)
 Removes the columns with the indices stored in array "idx" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j)
 Removes the two columns with the indices "i" and "j" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k)
 Removes the three columns with the indices "i", "j" and "k" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k, unsigned l)
 Removes the four columns with the indices "i", "j", "k" and "l" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k, unsigned l, unsigned m)
 Removes the five columns with the indices "i", "j", "k", "l" and "m" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k, unsigned l, unsigned m, unsigned n)
 Removes the six columns with the indices "i", "j", "k", "l", "m" and "n" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k, unsigned l, unsigned m, unsigned n, unsigned o)
 Removes the seven columns with the indices "i", "j", "k", "l", "m", "n" and "o" from the current non-empty array.
Array< T > & Array::remove_cols (unsigned i, unsigned j, unsigned k, unsigned l, unsigned m, unsigned n, unsigned o, unsigned p)
 Removes the eight columns with the indices "i", "j", "k", "l", "m", "n", "o" and "p" from the current non-empty array.

Function Documentation

template<class T >
Array< T > Array< T >::remove_col ( unsigned  k  )  const [inline, inherited]

Removes column "k" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
k the number of the column that will be removed, must be less than the size of the last dimension
Returns:
the array without column i
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that k exceeds the lats dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable

Definition at line 2126 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k,
unsigned  l,
unsigned  m,
unsigned  n,
unsigned  o,
unsigned  p 
) [inline, inherited]

Removes the eight columns with the indices "i", "j", "k", "l", "m", "n", "o" and "p" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
l index of the 4-th column that will be removed
m index of the 5-th column that will be removed
n index of the 6-th column that will be removed
o index of the 7-th column that will be removed
p index of the 8-th column that will be removed
Returns:
the array without the columns i, j, k, l, m, n, o and p
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i, j, k, l, m, n, o or p are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2559 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k,
unsigned  l,
unsigned  m,
unsigned  n,
unsigned  o 
) [inline, inherited]

Removes the seven columns with the indices "i", "j", "k", "l", "m", "n" and "o" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
l index of the 4-th column that will be removed
m index of the 5-th column that will be removed
n index of the 6-th column that will be removed
o index of the 7-th column that will be removed
Returns:
the array without the columns i, j, k, l, m, n and o
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i, j, k, l, m, n or o are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2503 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k,
unsigned  l,
unsigned  m,
unsigned  n 
) [inline, inherited]

Removes the six columns with the indices "i", "j", "k", "l", "m" and "n" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
l index of the 4-th column that will be removed
m index of the 5-th column that will be removed
n index of the 6-th column that will be removed
Returns:
the array without the columns i, j, k, l, m and n
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i, j, k, l, m or n are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2450 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k,
unsigned  l,
unsigned  m 
) [inline, inherited]

Removes the five columns with the indices "i", "j", "k", "l" and "m" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
l index of the 4-th column that will be removed
m index of the 5-th column that will be removed
Returns:
the array without the columns i, j, k, l and m
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i, j, k, l or m are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2399 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k,
unsigned  l 
) [inline, inherited]

Removes the four columns with the indices "i", "j", "k" and "l" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
l index of the 4-th column that will be removed
Returns:
the array without the columns i, j, k and l
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i, j, k or l are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2350 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j,
unsigned  k 
) [inline, inherited]

Removes the three columns with the indices "i", "j" and "k" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
k index of the third column that will be removed
Returns:
the array without the columns i, j and k
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i or j or k are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2305 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_cols ( unsigned  i,
unsigned  j 
) [inline, inherited]

Removes the two columns with the indices "i" and "j" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
i index of the first column that will be removed
j index of the second column that will be removed
Returns:
the array without the columns i and j
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that i or j are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable
See also:
remove_cols(const Array< unsigned >)

Definition at line 2262 of file Array.h.

template<class T >
Array<T>& Array< T >::remove_cols ( const Array< unsigned >  idx  )  [inline, inherited]

Removes the columns with the indices stored in array "idx" from the current non-empty array.

"Column" refers here always to the last dimension of the array.

Parameters:
idx one-dimensional array with the indices of the columns that will be removed
Returns:
the array without the columns defined in idx
Exceptions:
SharkException the type of the exception will be "range check error" and indicates that the current array has no dimensions or that idx is not one-dimensional or that idx contains values, that are greater than the size of the last dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01

Definition at line 2186 of file Array.h.

template<class T >
Array< T >& Array< T >::remove_row ( unsigned  i  )  [inline, inherited]

Removes row "i" from the current non-empty array.

"Row" refers here always to the first dimension of the array.

Parameters:
i the number of the row that will be removed, must be less than the size of the first dimension
Returns:
the array without row i
Exceptions:
SharkException the type of the exception will be "range check error" and indicates, that the current array has no dimensions or that i is greater than the size of the first dimension of the current array
Author:
M. Kreutz
Date:
1995-01-01
Changes
none
Status
stable

Definition at line 2070 of file Array.h.