Cytnx v0.9.6
Loading...
Searching...
No Matches
Namespaces | Functions
algo.hpp File Reference
#include "Type.hpp"
#include "cytnx_error.hpp"
#include "Tensor.hpp"
Include dependency graph for algo.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cytnx
 Helper function to print vector with ODT:
 
namespace  cytnx::algo
 Some basic algorithms API.
 

Functions

Tensor cytnx::algo::Sort (const Tensor &Tin)
 sort Tensor along last axis.
 
Tensor cytnx::algo::Concatenate (Tensor T1, Tensor T2)
 concatenate two 1d Tensor.
 
Tensor cytnx::algo::Vstack (const std::vector< Tensor > &In_tensors)
 vertical stack a list of Tensor.
 
Tensor cytnx::algo::Hstack (const std::vector< Tensor > &In_tensors)
 horizontal stack a list of Tensor.
 
void cytnx::algo::Vsplit_ (std::vector< Tensor > &out, const Tensor &Tin, const std::vector< cytnx_uint64 > &dims)
 split a Matrix (a 2d Tensor) into a list of Matrices along the vertical direction.
 
void cytnx::algo::Hsplit_ (std::vector< Tensor > &out, const Tensor &Tin, const std::vector< cytnx_uint64 > &dims)
 split a Matrix (a 2d Tensor) into a list of Matrices along the horizontal direction.
 
std::vector< Tensorcytnx::algo::Vsplit (const Tensor &Tin, const std::vector< cytnx_uint64 > &dims)
 split a Matrix (a 2d Tensor) into a list of Matrices along the vertical direction.
 
std::vector< Tensorcytnx::algo::Hsplit (const Tensor &Tin, const std::vector< cytnx_uint64 > &dims)
 split a Matrix (a 2d Tensor) into a list of Matrices along the horizontal direction.