avx_docs
xutianbing 9 years ago
parent fc32721f5c
commit cf205d0d43

@ -1240,6 +1240,12 @@ void BaseMatrixT<T>::assignAtOffset(BaseMatrixT& b, int64_t columnOffset) {
}
}
DEFINE_MATRIX_BINARY_OP(DeepSwap, T tmp = a; a = b; b = tmp);
template<class T>
void BaseMatrixT<T>::deepSwap(BaseMatrixT& b) {
applyBinary(binary::DeepSwap<T>(), b);
}
template<>
void BaseMatrixT<real>::rowDotMul(size_t destCol,
BaseMatrixT& b,

@ -455,6 +455,13 @@ public:
*/
void assign(T p);
/**
* @code
* swap(this, b)
* @endcode
*/
void deepSwap(BaseMatrixT& b);
/**
* @code
* this = this + p

Loading…
Cancel
Save