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:
parent
2ddc0d745c
commit
c3319182a2
|
@ -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> >
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user