typedef twod_tag dimension_tag;
/* To simplify the matrix transpose operator: */
- typedef fixed_2D<Element,Cols,Rows,Layout> transposed_type;
+ typedef fixed_2D<typename cml::remove_const<Element>::type,
+ Cols,Rows,Layout> transposed_type;
/* Note: the transposed type must be fixed_2D, since an external array
* cannot be specified without a corresponding memory location.
*/
typedef twod_tag dimension_tag;
/* To simplify the matrix transpose operator: */
- typedef dynamic_2D<Element,Layout, CML_DEFAULT_ARRAY_ALLOC>
- transposed_type;
+ typedef dynamic_2D<typename cml::remove_const<Element>::type,
+ Layout, CML_DEFAULT_ARRAY_ALLOC> transposed_type;
/* To simplify the matrix row and column operators: */
typedef dynamic_1D<Element, CML_DEFAULT_ARRAY_ALLOC> row_array_type;