working on tensor

This commit is contained in:
2024-04-04 12:12:12 +02:00
parent baee11489b
commit 87dd0c5b65
2 changed files with 40 additions and 9 deletions

View File

@@ -158,6 +158,27 @@ LA_largeindex Tensor<T>::vindex(int *sign, int i1, va_list args) const
}
//binary I/O
template<typename T>
void Tensor<T>::put(int fd) const
{
shape.put(fd,true);
cumsizes.put(fd,true);
data.put(fd,true);
}
template<typename T>
void Tensor<T>::get(int fd)
{
shape.get(fd,true);
cumsizes.get(fd,true);
data.get(fd,true);
}
template class Tensor<double>;
template class Tensor<std::complex<double> >;