fourindex: adding set() for compatibility with templated use

This commit is contained in:
2025-11-26 17:46:26 +01:00
parent b556b06442
commit 831404d08d

View File

@@ -1244,7 +1244,7 @@ if (!NRSMat<T>::v) laerror("access to unallocated fourindex_dense");
#endif #endif
return (*this).NRSMat<T>::operator() ((j-1)*nnbas+i-1,(b-1)*nnbas+a-1); return (*this).NRSMat<T>::operator() ((j-1)*nnbas+i-1,(b-1)*nnbas+a-1);
} }
inline void set(unsigned int i, unsigned int j, unsigned int k, unsigned int l, T elem) {this->operator()(i,j,k,l)=elem;};
void print(std::ostream &out) const void print(std::ostream &out) const
{ {
unsigned int i,j,a,b; unsigned int i,j,a,b;