Applied patch from #1133
This commit is contained in:
parent
77425edd11
commit
1af9b8ecab
@ -492,7 +492,7 @@ public:
|
|||||||
Matx<_Tp, m, 1> col(int i) const;
|
Matx<_Tp, m, 1> col(int i) const;
|
||||||
|
|
||||||
//! extract the matrix diagonal
|
//! extract the matrix diagonal
|
||||||
Matx<_Tp, MIN(m,n), 1> diag() const;
|
diag_type diag() const;
|
||||||
|
|
||||||
//! transpose the matrix
|
//! transpose the matrix
|
||||||
Matx<_Tp, n, m> t() const;
|
Matx<_Tp, n, m> t() const;
|
||||||
|
@ -360,7 +360,7 @@ template<typename _Tp, int m, int n> inline double Matx<_Tp, m, n>::ddot(const M
|
|||||||
|
|
||||||
|
|
||||||
template<typename _Tp, int m, int n> inline
|
template<typename _Tp, int m, int n> inline
|
||||||
Matx<_Tp,m,n> Matx<_Tp,m,n>::diag(const Matx<_Tp,MIN(m,n),1>& d)
|
Matx<_Tp,m,n> Matx<_Tp,m,n>::diag(const typename Matx<_Tp,m,n>::diag_type& d)
|
||||||
{
|
{
|
||||||
Matx<_Tp,m,n> M;
|
Matx<_Tp,m,n> M;
|
||||||
for(int i = 0; i < MIN(m,n); i++)
|
for(int i = 0; i < MIN(m,n); i++)
|
||||||
@ -436,7 +436,7 @@ Matx<_Tp, m, 1> Matx<_Tp, m, n>::col(int j) const
|
|||||||
|
|
||||||
|
|
||||||
template<typename _Tp, int m, int n> inline
|
template<typename _Tp, int m, int n> inline
|
||||||
Matx<_Tp, MIN(m,n), 1> Matx<_Tp, m, n>::diag() const
|
typename Matx<_Tp, m, n>::diag_type Matx<_Tp, m, n>::diag() const
|
||||||
{
|
{
|
||||||
diag_type d;
|
diag_type d;
|
||||||
for( int i = 0; i < MIN(m, n); i++ )
|
for( int i = 0; i < MIN(m, n); i++ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user