#include <MArray.h>
Inherits Array< T >.
Inherited by intNDArray< T >.
Public Member Functions | |
MArray (void) | |
MArray (octave_idx_type n) GCC_ATTR_DEPRECATED | |
MArray (octave_idx_type n, const T &val) GCC_ATTR_DEPRECATED | |
MArray (const dim_vector &dv) | |
MArray (const dim_vector &dv, const T &val) | |
MArray (const MArray< T > &a) | |
template<class U > | |
MArray (const Array< U > &a) | |
~MArray (void) | |
MArray< T > & | operator= (const MArray< T > &a) |
MArray< T > | reshape (const dim_vector &new_dims) const |
MArray< T > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
MArray< T > | ipermute (const Array< octave_idx_type > &vec) const |
MArray | squeeze (void) const |
MArray< T > | transpose (void) const |
MArray< T > | hermitian (T(*fcn)(const T &)=0) const |
void | idx_add (const idx_vector &idx, T val) |
void | idx_add (const idx_vector &idx, const MArray< T > &vals) |
void | idx_min (const idx_vector &idx, const MArray< T > &vals) |
void | idx_max (const idx_vector &idx, const MArray< T > &vals) |
void | idx_add_nd (const idx_vector &idx, const MArray< T > &vals, int dim=-1) |
void | changesign (void) |
MArray< T >::MArray | ( | octave_idx_type | n | ) | [inline, explicit] |
MArray< T >::MArray | ( | octave_idx_type | n, | |
const T & | val | |||
) | [inline] |
MArray< T >::MArray | ( | const dim_vector & | dv | ) | [inline, explicit] |
MArray< T >::MArray | ( | const dim_vector & | dv, | |
const T & | val | |||
) | [inline, explicit] |
void MArray< T >::changesign | ( | void | ) |
Reimplemented in ComplexNDArray, NDArray, FloatComplexNDArray, FloatNDArray, intNDArray< T >, intNDArray< octave_uint8 >, and intNDArray< OCTAVE_INT_T >.
Reimplemented from Array< T >.
void MArray< T >::idx_add | ( | const idx_vector & | idx, | |
T | val | |||
) |
void MArray< T >::idx_add | ( | const idx_vector & | idx, | |
const MArray< T > & | vals | |||
) |
void MArray< T >::idx_add_nd | ( | const idx_vector & | idx, | |
const MArray< T > & | vals, | |||
int | dim = -1 | |||
) |
void MArray< T >::idx_max | ( | const idx_vector & | idx, | |
const MArray< T > & | vals | |||
) |
void MArray< T >::idx_min | ( | const idx_vector & | idx, | |
const MArray< T > & | vals | |||
) |
MArray<T> MArray< T >::ipermute | ( | const Array< octave_idx_type > & | vec | ) | const [inline] |
Reimplemented from Array< T >.
MArray<T> MArray< T >::permute | ( | const Array< octave_idx_type > & | vec, | |
bool | inv = false | |||
) | const [inline] |
Reimplemented from Array< T >.
MArray<T> MArray< T >::reshape | ( | const dim_vector & | new_dims | ) | const [inline] |
Reimplemented from Array< T >.
Reimplemented from Array< T >.
Reimplemented in ComplexNDArray, NDArray, FloatComplexNDArray, FloatNDArray, intNDArray< T >, intNDArray< octave_uint8 >, and intNDArray< OCTAVE_INT_T >.
Reimplemented from Array< T >.
Reimplemented in ComplexColumnVector, ComplexMatrix, ComplexRowVector, ColumnVector, Matrix, RowVector, FloatComplexColumnVector, FloatComplexMatrix, FloatColumnVector, FloatComplexRowVector, FloatMatrix, FloatRowVector, intNDArray< T >, intNDArray< octave_uint8 >, and intNDArray< OCTAVE_INT_T >.