*** empty log message ***
This commit is contained in:
parent
3a243630de
commit
44ca93561d
@ -171,7 +171,7 @@ static void get(int fd, C &x, bool dimensions=1, bool transp=0) {x.get(fd,dimens
|
|||||||
static void multiput(unsigned int n,int fd, const C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].put(fd,dimensions);} \
|
static void multiput(unsigned int n,int fd, const C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].put(fd,dimensions);} \
|
||||||
static void multiget(unsigned int n,int fd, C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].get(fd,dimensions);} \
|
static void multiget(unsigned int n,int fd, C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].get(fd,dimensions);} \
|
||||||
static void copy(C *dest, C *src, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=src[i];} \
|
static void copy(C *dest, C *src, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=src[i];} \
|
||||||
static void clear(C *dest, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=C(0);}\
|
static void clear(C *dest, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i].clear();}\
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -198,7 +198,7 @@ static void get(int fd, C &x, bool dimensions=1, bool transp=0) {x.get(fd,dimens
|
|||||||
static void multiput(unsigned int n,int fd, const C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].put(fd,dimensions);}
|
static void multiput(unsigned int n,int fd, const C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].put(fd,dimensions);}
|
||||||
static void multiget(unsigned int n,int fd, C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].get(fd,dimensions);}
|
static void multiget(unsigned int n,int fd, C *x, bool dimensions=1) {for(unsigned int i=0; i<n; ++i) x[i].get(fd,dimensions);}
|
||||||
static void copy(C *dest, C *src, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=src[i];}
|
static void copy(C *dest, C *src, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=src[i];}
|
||||||
static void clear(C *dest, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i]=C(0);}
|
static void clear(C *dest, unsigned int n) {for(unsigned int i=0; i<n; ++i) dest[i].clear();}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,6 +71,7 @@ public:
|
|||||||
SparseMat & operator+=(const SparseMat &rhs);
|
SparseMat & operator+=(const SparseMat &rhs);
|
||||||
SparseMat & addtriangle(const SparseMat &rhs, const bool lower, const char sign);
|
SparseMat & addtriangle(const SparseMat &rhs, const bool lower, const char sign);
|
||||||
SparseMat & join(SparseMat &rhs); //more efficient +=, rhs will be emptied
|
SparseMat & join(SparseMat &rhs); //more efficient +=, rhs will be emptied
|
||||||
|
void clear() {unsort();deletelist();}
|
||||||
SparseMat & operator-=(const SparseMat &rhs);
|
SparseMat & operator-=(const SparseMat &rhs);
|
||||||
inline const SparseMat operator+(const T &rhs) const {return SparseMat(*this) += rhs;}
|
inline const SparseMat operator+(const T &rhs) const {return SparseMat(*this) += rhs;}
|
||||||
inline const SparseMat operator-(const T &rhs) const {return SparseMat(*this) -= rhs;}
|
inline const SparseMat operator-(const T &rhs) const {return SparseMat(*this) -= rhs;}
|
||||||
|
Loading…
Reference in New Issue
Block a user