Download this file
24 lines (22 with data), 515 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | //=============================================================================
/*! */
template<long l>
inline dcovector_small<l> operator+(const dcovector_small<l>& A)
{
dcovector_small<l> X;
for(long i=0; i<l; i++){
X(i)=+A(i);
}
return X;
}
//=============================================================================
/*! */
template<long l>
inline dcovector_small<l> operator-(const dcovector_small<l>& A)
{
dcovector_small<l> X;
for(long i=0; i<l; i++){
X(i)=-A(i);
}
return X;
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.