*** empty log message ***
This commit is contained in:
parent
4f3d079afa
commit
5c3e04b18b
1
smat.h
1
smat.h
@ -92,6 +92,7 @@ inline NRSMat<T>::NRSMat(const T& a, const int n) : nn(n),
|
|||||||
{
|
{
|
||||||
*count =1;
|
*count =1;
|
||||||
if(a != (T)0) for(int i=0; i<NN2; i++) v[i] = a;
|
if(a != (T)0) for(int i=0; i<NN2; i++) v[i] = a;
|
||||||
|
else memset(v, 0, NN2*sizeof(T));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user