Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
Symmetry preserving algorithm for SY<-ASAS

A clever way to multiply symmetric tensors. More...

Collaboration diagram for Symmetry preserving algorithm for SY<-ASAS:

Functions

int parity (char const *a, char const *b, char const *c, int len_A, int len_B)
 
int parity (char const *a, char const *c, int len_A, int len_C)
 
double sign (int par)
 
void get_rand_as_tsr (Tensor<> &tsr, int seed)
 
bool check_asym (Tensor<> &tsr)
 
bool check_sym (Tensor<> &tsr)
 
int64_t fact (int64_t n)
 
int64_t choose (int64_t n, int64_t k)
 
int64_t chchoose (int64_t n, int64_t k)
 
void chi (char const *idx, int idx_len, int p_len, int q_len, int *npair, char ***idx_p, char ***idx_q)
 
void chi (char const *idx, int idx_len, int p_len, int *npair, char ***idx_p)
 
int fast_tensor_ctr (int n, int s, int t, int v, World &ctf)
 
char * getCmdOption (char **begin, char **end, const std::string &option)
 
int main (int argc, char **argv)
 

Detailed Description

A clever way to multiply symmetric tensors.

Function Documentation

int64_t chchoose ( int64_t  n,
int64_t  k 
)

Definition at line 178 of file fast_sy_as_as_tensor_ctr.cxx.

References fact().

void chi ( char const *  idx,
int  idx_len,
int  p_len,
int  q_len,
int *  npair,
char ***  idx_p,
char ***  idx_q 
)

Definition at line 182 of file fast_sy_as_as_tensor_ctr.cxx.

References choose(), and ctf.core::np().

Referenced by chi(), and fast_tensor_ctr().

void chi ( char const *  idx,
int  idx_len,
int  p_len,
int *  npair,
char ***  idx_p 
)

Definition at line 311 of file fast_sy_as_as_tensor_ctr.cxx.

References chi().

int64_t choose ( int64_t  n,
int64_t  k 
)

Definition at line 174 of file fast_sy_as_as_tensor_ctr.cxx.

References fact().

Referenced by chi(), and fast_tensor_ctr().

int64_t fact ( int64_t  n)

Definition at line 166 of file fast_sy_as_as_tensor_ctr.cxx.

Referenced by chchoose(), and choose().

int fast_tensor_ctr ( int  n,
int  s,
int  t,
int  v,
World ctf 
)
char* getCmdOption ( char **  begin,
char **  end,
const std::string &  option 
)

Definition at line 592 of file fast_sy_as_as_tensor_ctr.cxx.

Referenced by main().

int main ( int  argc,
char **  argv 
)
int parity ( char const *  a,
char const *  b,
char const *  c,
int  len_A,
int  len_B 
)

Definition at line 13 of file fast_sy_as_as_tensor_ctr.cxx.

Referenced by fast_tensor_ctr(), get_rand_as_tsr(), and parity().

int parity ( char const *  a,
char const *  c,
int  len_A,
int  len_C 
)

Definition at line 49 of file fast_sy_as_as_tensor_ctr.cxx.

References ctf.core::b, and parity().

double sign ( int  par)

Definition at line 69 of file fast_sy_as_as_tensor_ctr.cxx.

Referenced by fast_tensor_ctr(), and get_rand_as_tsr().