# HG changeset patch # User Jaroslav Hajek # Date 1253351668 -7200 # Node ID b29504415a2e471c2645a9190c6ea5bee81981a1 # Parent 17971b0f18b1af88a929f573783bc0db9512b3c6 provide NDArray->Matrix->Vector typedef mappers diff --git a/liboctave/CMatrix.h b/liboctave/CMatrix.h --- a/liboctave/CMatrix.h +++ b/liboctave/CMatrix.h @@ -39,6 +39,9 @@ { public: + typedef ComplexColumnVector column_vector_type; + typedef ComplexRowVector row_vector_type; + typedef void (*solve_singularity_handler) (double rcon); ComplexMatrix (void) : MArray2 () { } diff --git a/liboctave/CNDArray.h b/liboctave/CNDArray.h --- a/liboctave/CNDArray.h +++ b/liboctave/CNDArray.h @@ -35,6 +35,8 @@ { public: + typedef ComplexMatrix matrix_type; + ComplexNDArray (void) : MArrayN () { } ComplexNDArray (const dim_vector& dv) : MArrayN (dv) { } diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,21 @@ +2009-09-19 Jaroslav Hajek + + * dNDArray.h (NDArray::matrix_type): New typedef. + * fNDArray.h (FloatNDArray::matrix_type): New typedef. + * CNDArray.h (ComplexNDArray::matrix_type): New typedef. + * fCNDArray.h (FloatComplexNDArray::matrix_type): New typedef. + * boolNDArray.h (boolNDArray::matrix_type): New typedef. + * charNDArray.h (charNDArray::matrix_type): New typedef. + + * dMatrix.h (Matrix::column_vector_type, + Matrix::row_vector_type): New typedefs. + * fMatrix.h (FloatMatrix::column_vector_type, + FloatMatrix::row_vector_type): New typedefs. + * CMatrix.h (ComplexMatrix::column_vector_type, + ComplexMatrix::row_vector_type): New typedefs. + * fCMatrix.h (FloatComplexMatrix::column_vector_type, + FloatComplexMatrix::row_vector_type): New typedefs. + 2009-09-18 John W. Eaton * mach-info.cc: Don't include oct-types.h. diff --git a/liboctave/boolNDArray.h b/liboctave/boolNDArray.h --- a/liboctave/boolNDArray.h +++ b/liboctave/boolNDArray.h @@ -36,6 +36,8 @@ { public: + typedef boolMatrix matrix_type; + boolNDArray (void) : ArrayN () { } boolNDArray (const dim_vector& dv) : ArrayN (dv) { } diff --git a/liboctave/chNDArray.h b/liboctave/chNDArray.h --- a/liboctave/chNDArray.h +++ b/liboctave/chNDArray.h @@ -35,6 +35,8 @@ { public: + typedef charMatrix matrix_type; + charNDArray (void) : MArrayN () { } charNDArray (const dim_vector& dv) : MArrayN (dv) { } diff --git a/liboctave/dMatrix.h b/liboctave/dMatrix.h --- a/liboctave/dMatrix.h +++ b/liboctave/dMatrix.h @@ -38,6 +38,9 @@ { public: + typedef ColumnVector column_vector_type; + typedef RowVector row_vector_type; + typedef void (*solve_singularity_handler) (double rcon); Matrix (void) : MArray2 () { } diff --git a/liboctave/dNDArray.h b/liboctave/dNDArray.h --- a/liboctave/dNDArray.h +++ b/liboctave/dNDArray.h @@ -37,6 +37,8 @@ { public: + typedef Matrix matrix_type; + NDArray (void) : MArrayN () { } NDArray (const dim_vector& dv) : MArrayN (dv) { } diff --git a/liboctave/fCMatrix.h b/liboctave/fCMatrix.h --- a/liboctave/fCMatrix.h +++ b/liboctave/fCMatrix.h @@ -39,6 +39,9 @@ { public: + typedef FloatComplexColumnVector column_vector_type; + typedef FloatComplexRowVector row_vector_type; + typedef void (*solve_singularity_handler) (float rcon); FloatComplexMatrix (void) : MArray2 () { } diff --git a/liboctave/fCNDArray.h b/liboctave/fCNDArray.h --- a/liboctave/fCNDArray.h +++ b/liboctave/fCNDArray.h @@ -35,6 +35,8 @@ { public: + typedef FloatComplexMatrix matrix_type; + FloatComplexNDArray (void) : MArrayN () { } FloatComplexNDArray (const dim_vector& dv) : MArrayN (dv) { } diff --git a/liboctave/fMatrix.h b/liboctave/fMatrix.h --- a/liboctave/fMatrix.h +++ b/liboctave/fMatrix.h @@ -38,6 +38,9 @@ { public: + typedef FloatColumnVector column_vector_type; + typedef FloatRowVector row_vector_type; + typedef void (*solve_singularity_handler) (float rcon); FloatMatrix (void) : MArray2 () { } diff --git a/liboctave/fNDArray.h b/liboctave/fNDArray.h --- a/liboctave/fNDArray.h +++ b/liboctave/fNDArray.h @@ -37,6 +37,8 @@ { public: + typedef FloatMatrix matrix_type; + FloatNDArray (void) : MArrayN () { } FloatNDArray (const dim_vector& dv) : MArrayN (dv) { }