mptensor
v0.3.0
Parallel Library for Tensor Network Methods
|
Implementation of RSVD. More...
#include <cassert>
#include <vector>
#include "complex.hpp"
#include "index.hpp"
#include "matrix.hpp"
#include "rsvd.hpp"
#include "tensor.hpp"
Go to the source code of this file.
Namespaces | |
mptensor | |
mptensor::random_tensor | |
Functions | |
template<typename C > | |
C | mptensor::random_tensor::uniform_dist () |
void | mptensor::random_tensor::set_seed (unsigned int seed) |
template<typename tensor_t > | |
void | mptensor::random_tensor::fill (tensor_t &t) |
template<template< typename > class Matrix, typename C > | |
int | mptensor::rsvd (const Tensor< Matrix, C > &a, const Axes &axes_row, const Axes &axes_col, Tensor< Matrix, C > &u, std::vector< double > &s, Tensor< Matrix, C > &vt, const size_t target_rank, const size_t oversamp) |
Singular value decomposition by randomized algorithm. More... | |
template<template< typename > class Matrix, typename C > | |
int | mptensor::rsvd (const Tensor< Matrix, C > &a, const Axes &axes_row, const Axes &axes_col, Tensor< Matrix, C > &u, std::vector< double > &s, Tensor< Matrix, C > &vt, const size_t target_rank) |
RSVD with oversamp = target_rank . More... | |
template<template< typename > class Matrix, typename C , typename Func1 , typename Func2 > | |
int | mptensor::rsvd (Func1 &multiply_row, Func2 &multiply_col, const Shape &shape_row, const Shape &shape_col, Tensor< Matrix, C > &u, std::vector< double > &s, Tensor< Matrix, C > &vt, const size_t target_rank, const size_t oversamp) |
Singular value decomposition by randomized algorithm. More... | |
template<template< typename > class Matrix, typename C , typename Func1 , typename Func2 > | |
int | mptensor::rsvd (Func1 &multiply_row, Func2 &multiply_col, const Shape &shape_row, const Shape &shape_col, Tensor< Matrix, C > &u, std::vector< double > &s, Tensor< Matrix, C > &vt, const size_t target_rank) |
RSVD with oversamp = target_rank . More... | |
void | mptensor::set_seed (unsigned int seed) |
Set seed for random number generator. More... | |
Implementation of RSVD.