*** empty log message ***
This commit is contained in:
parent
8b46fda2af
commit
1021cebe33
7
mat.h
7
mat.h
@ -495,8 +495,13 @@ template <typename T>
|
|||||||
void NRMat<T>::resize(const int n, const int m)
|
void NRMat<T>::resize(const int n, const int m)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (n<0 || m<0 || n>0 && m==0 || n==0 && m>0) laerror("illegal dimensions in Mat::resize()");
|
if (n<0 || m<0) laerror("illegal dimensions in Mat::resize()");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//allow trivial dimensions
|
||||||
|
if(n==0) m=0;
|
||||||
|
if(m==0) n=0;
|
||||||
|
|
||||||
if (count)
|
if (count)
|
||||||
{
|
{
|
||||||
if(n==0 && m==0)
|
if(n==0 && m==0)
|
||||||
|
Loading…
Reference in New Issue
Block a user