mptensor  v0.3.0
Parallel Library for Tensor Network Methods
mptensor::debug Namespace Reference

Namespace for debugging. More...

Functions

bool check_total_size (const Shape &s1, const Shape &s2)
 
bool check_extend (const Shape &s_old, const Shape &s_new)
 
bool check_transpose_axes (const Axes &axes, size_t rank)
 
bool check_svd_axes (const Axes &axes_row, const Axes &axes_col, size_t rank)
 
bool check_trace_axes (const Axes &axes_1, const Axes &axes_2, size_t rank)
 
bool check_trace_axes (const Axes &axes_a, const Axes &axes_b, const Shape &shape_a, const Shape &shape_b)
 
bool check_contract_axes (const Axes &axes_1, const Axes &axes_2, size_t rank)
 
bool check_square (const Shape &shape, size_t urank)
 

Detailed Description

Namespace for debugging.

Functions in this namespace are called in assert().

Function Documentation

◆ check_contract_axes()

bool mptensor::debug::check_contract_axes ( const Axes axes_1,
const Axes axes_2,
size_t  rank 
)

◆ check_extend()

bool mptensor::debug::check_extend ( const Shape s_old,
const Shape s_new 
)

◆ check_square()

bool mptensor::debug::check_square ( const Shape shape,
size_t  urank 
)

◆ check_svd_axes()

bool mptensor::debug::check_svd_axes ( const Axes axes_row,
const Axes axes_col,
size_t  rank 
)

◆ check_total_size()

bool mptensor::debug::check_total_size ( const Shape s1,
const Shape s2 
)

◆ check_trace_axes() [1/2]

bool mptensor::debug::check_trace_axes ( const Axes axes_1,
const Axes axes_2,
size_t  rank 
)

◆ check_trace_axes() [2/2]

bool mptensor::debug::check_trace_axes ( const Axes axes_a,
const Axes axes_b,
const Shape shape_a,
const Shape shape_b 
)

◆ check_transpose_axes()

bool mptensor::debug::check_transpose_axes ( const Axes axes,
size_t  rank 
)