1
0
mirror of https://github.com/davisking/dlib.git synced 2024-11-23 13:28:34 +08:00

Fixed a bug which caused certain matrix expressions to not compile

when the BLAS bindings were enabled.  In particular, expressions which
involved a 1x1 matrix sometimes didn't compile.
This commit is contained in:
Davis King 2012-02-22 19:51:59 -05:00
parent 2ddc0d745c
commit c3319182a2

View File

@ -116,6 +116,12 @@ namespace dlib
const static int value = column_matrix; const static int value = column_matrix;
}; };
template <typename T, typename MM, typename L>
struct matrix_type_id<matrix<T,1,1,MM,L> >
{
const static int value = column_matrix;
};
template <typename T, long NC, typename MM, typename L> template <typename T, long NC, typename MM, typename L>
struct matrix_type_id<matrix<T,1,NC,MM,L> > struct matrix_type_id<matrix<T,1,NC,MM,L> >
{ {