Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
hosvd.cxx File Reference
#include <ctf.hpp>
#include <stdlib.h>
#include <iostream>
#include <stdio.h>
#include <complex>
Include dependency graph for hosvd.cxx:

Go to the source code of this file.

Functions

void Cblacs_pinfo (int *, int *)
 
void Cblacs_get (int, int, int *)
 
void Cblacs_gridinit (int *, char *, int, int)
 
void Cblacs_gridinfo (int, int *, int *, int *, int *)
 
void Cblacs_gridmap (int *, int *, int, int, int)
 
void Cblacs_barrier (int, char *)
 
void Cblacs_gridexit (int)
 
void fold_unfold (Tensor<> &X, Tensor<> &Y)
 
std::vector< Matrix<> > get_factor_matrices (Tensor<> &T, int ranks[], World &dw)
 
Tensor get_core_tensor (Tensor<> &T, std::vector< Matrix<> > factor_matrices, int ranks[], World &dw)
 
void hosvd (Tensor<> &T, Tensor<> &core, std::vector< Matrix<> > factor_matrices, int *ranks, World &dw)
 
Tensor get_core_tensor_hooi (Tensor<> &T, std::vector< Matrix<> > factor_matrices, int ranks[], World &dw, int j=-1)
 
void hooi (Tensor<> &T, Tensor<> &core, std::vector< Matrix<> > factor_matrices, int *ranks, World &dw)
 
int main (int argc, char **argv)
 

Variables

int icontxt
 

Function Documentation

void Cblacs_barrier ( int  ,
char *   
)
void Cblacs_get ( int  ,
int  ,
int *   
)

Referenced by CTF_SCALAPACK::cblacs_get(), and main().

void Cblacs_gridexit ( int  )
void Cblacs_gridinfo ( int  ,
int *  ,
int *  ,
int *  ,
int *   
)
void Cblacs_gridinit ( int *  ,
char *  ,
int  ,
int   
)
void Cblacs_gridmap ( int *  ,
int *  ,
int  ,
int  ,
int   
)
void Cblacs_pinfo ( int *  ,
int *   
)
void fold_unfold ( Tensor<> &  X,
Tensor<> &  Y 
)

Definition at line 33 of file hosvd.cxx.

References CTF::Tensor< dtype >::read_local(), and CTF::Tensor< dtype >::write().

Tensor get_core_tensor ( Tensor<> &  T,
std::vector< Matrix<> >  factor_matrices,
int  ranks[],
World dw 
)

Definition at line 111 of file hosvd.cxx.

References CTF_int::tensor::lens, CTF_int::tensor::order, and ctf.core::transpose().

Tensor get_core_tensor_hooi ( Tensor<> &  T,
std::vector< Matrix<> >  factor_matrices,
int  ranks[],
World dw,
int  j = -1 
)

Definition at line 159 of file hosvd.cxx.

References CTF_int::tensor::lens, CTF_int::tensor::order, and ctf.core::transpose().

Referenced by hooi().

std::vector< Matrix <> > get_factor_matrices ( Tensor<> &  T,
int  ranks[],
World dw 
)
void hooi ( Tensor<> &  T,
Tensor<> &  core,
std::vector< Matrix<> >  factor_matrices,
int *  ranks,
World dw 
)
void hosvd ( Tensor<> &  T,
Tensor<> &  core,
std::vector< Matrix<> >  factor_matrices,
int *  ranks,
World dw 
)

Definition at line 154 of file hosvd.cxx.

References CTF::get_core_tensor(), and CTF::get_factor_matrices().

Variable Documentation

int icontxt

Definition at line 7 of file hosvd.cxx.

Referenced by main().