Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
util.cxx File Reference
#include <stdio.h>
#include <stdint.h>
#include "string.h"
#include <assert.h>
#include "util.h"
Include dependency graph for util.cxx:

Go to the source code of this file.

Namespaces

 CTF_int
 

Functions

int64_t CTF_int::sy_packed_size (int order, const int *len, const int *sym)
 computes the size of a tensor in SY (NOT HOLLOW) packed symmetric layout More...
 
int64_t CTF_int::packed_size (int order, const int *len, const int *sym)
 computes the size of a tensor in packed symmetric (SY, SH, or AS) layout More...
 
void CTF_int::calc_idx_arr (int order, int const *lens, int const *sym, int64_t idx, int *idx_arr)
 
void CTF_int::sy_calc_idx_arr (int order, int const *lens, int const *sym, int64_t idx, int *idx_arr)
 same as above except assumes sym only NS or SY More...
 
void CTF_int::factorize (int n, int *nfactor, int **factor)
 computes the size of a tensor in packed symmetric layout More...
 
void CTF_int::permute (int order, int const *perm, int *arr)
 permute an array More...
 
void CTF_int::permute_target (int order, int const *perm, int *arr)
 permutes a permutation array More...
 
void CTF_int::socopy (int64_t m, int64_t n, int64_t lda_a, int64_t lda_b, int64_t const *sizes_a, int64_t *&sizes_b, int64_t *&offsets_b)
 
void CTF_int::spcopy (int64_t m, int64_t n, int64_t lda_a, int64_t lda_b, int64_t const *sizes_a, int64_t const *offsets_a, char const *a, int64_t const *sizes_b, int64_t const *offsets_b, char *b)
 
int64_t CTF_int::fact (int64_t n)
 
int64_t CTF_int::choose (int64_t n, int64_t k)
 
void CTF_int::get_choice (int64_t n, int64_t k, int64_t ch, int *chs)
 
int64_t CTF_int::chchoose (int64_t n, int64_t k)