monolish  0.17.3-dev.16
MONOlithic LInear equation Solvers for Highly-parallel architecture
Functions
Compare data

Compare data. More...

Functions

template<typename T , typename U >
bool monolish::util::is_same_device_mem_stat (const T &arg1, const U &arg2)
 compare same device memory status More...
 
template<typename T , typename U , typename... types>
bool monolish::util::is_same_device_mem_stat (const T &arg1, const U &arg2, const types &...args)
 compare same device memory status More...
 
template<typename T >
bool monolish::util::is_same_size (const matrix::COO< T > &A, const matrix::COO< T > &B)
 compare row and col size More...
 
template<typename T >
bool monolish::util::is_same_size (const matrix::CRS< T > &A, const matrix::CRS< T > &B)
 compare row and col size More...
 
template<typename T >
bool monolish::util::is_same_size (const matrix::Dense< T > &A, const matrix::Dense< T > &B)
 compare row and col size More...
 
template<typename T , typename U >
bool monolish::util::is_same_size (const matrix::Dense< U > &A, const view_Dense< T, U > &B)
 compare row and col size More...
 
template<typename T >
bool monolish::util::is_same_size (const matrix::LinearOperator< T > &A, const matrix::LinearOperator< T > &B)
 compare row and col size More...
 
template<typename T , typename U , typename V , typename... types>
bool monolish::util::is_same_size (const T &arg1, const U &arg2, const V &arg3, const types &...args)
 compare matrix size More...
 
template<typename T , typename U >
bool monolish::util::is_same_size (const T &x, const U &y)
 compare size of vector or 1Dview (same as is_same_structure()) More...
 
template<typename T >
bool monolish::util::is_same_size (const tensor::tensor_COO< T > &A, const tensor::tensor_COO< T > &B)
 compare shape More...
 
template<typename T >
bool monolish::util::is_same_size (const tensor::tensor_Dense< T > &A, const tensor::tensor_Dense< T > &B)
 compare shape More...
 
template<typename T , typename U >
bool monolish::util::is_same_size (const tensor::tensor_Dense< U > &A, const view_tensor_Dense< T, U > &B)
 compare shape More...
 
template<typename T , typename U >
bool monolish::util::is_same_size (const view_Dense< T, U > &A, const matrix::Dense< U > &B)
 compare row and col size More...
 
template<typename T , typename U , typename V >
bool monolish::util::is_same_size (const view_Dense< T, V > &A, const view_Dense< U, V > &B)
 compare row and col size More...
 
template<typename T , typename U >
bool monolish::util::is_same_size (const view_tensor_Dense< T, U > &A, const tensor::tensor_Dense< U > &B)
 compare shape More...
 
template<typename T , typename U , typename V >
bool monolish::util::is_same_size (const view_tensor_Dense< T, V > &A, const view_tensor_Dense< U, V > &B)
 compare shape More...
 
template<typename T >
bool monolish::util::is_same_structure (const matrix::COO< T > &A, const matrix::COO< T > &B)
 compare structure using col_index and row_index, M, and N More...
 
template<typename T >
bool monolish::util::is_same_structure (const matrix::CRS< T > &A, const matrix::CRS< T > &B)
 compare structure using structure_hash, M, and N More...
 
template<typename T >
bool monolish::util::is_same_structure (const matrix::Dense< T > &A, const matrix::Dense< T > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const matrix::Dense< U > &A, const view_Dense< T, U > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T >
bool monolish::util::is_same_structure (const matrix::LinearOperator< T > &A, const matrix::LinearOperator< T > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U , typename V , typename... types>
bool monolish::util::is_same_structure (const T &A, const U &B, const V &C, const types &...args)
 compare matrix structure More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const T A, const U B)
 compare matrix structure More...
 
template<typename T >
bool monolish::util::is_same_structure (const tensor::tensor_COO< T > &A, const tensor::tensor_COO< T > &B)
 compare structure using col_index and row_index, M, and N More...
 
template<typename T >
bool monolish::util::is_same_structure (const tensor::tensor_Dense< T > &A, const tensor::tensor_Dense< T > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const tensor::tensor_Dense< U > &A, const view_tensor_Dense< T, U > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T >
bool monolish::util::is_same_structure (const vector< T > &x, const vector< T > &y)
 compare structure of vector (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const vector< U > &x, const view1D< T, U > &y)
 compare structure of vector (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const view1D< T, U > &x, const vector< U > &y)
 compare structure of vector (same as is_same_size()) More...
 
template<typename T , typename U , typename V >
bool monolish::util::is_same_structure (const view1D< T, V > &x, const view1D< U, V > &y)
 compare structure of vector (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const view_Dense< T, U > &A, const matrix::Dense< U > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U , typename V >
bool monolish::util::is_same_structure (const view_Dense< T, V > &A, const view_Dense< U, V > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U >
bool monolish::util::is_same_structure (const view_tensor_Dense< T, U > &A, const tensor::tensor_Dense< U > &B)
 compare structure using M and N (same as is_same_size()) More...
 
template<typename T , typename U , typename V >
bool monolish::util::is_same_structure (const view_tensor_Dense< T, V > &A, const view_tensor_Dense< U, V > &B)
 compare structure using M and N (same as is_same_size()) More...
 

Detailed Description

Compare data.

Function Documentation

◆ is_same_device_mem_stat() [1/2]

template<typename T , typename U >
bool monolish::util::is_same_device_mem_stat ( const T &  arg1,
const U &  arg2 
)

compare same device memory status

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 876 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ is_same_device_mem_stat() [2/2]

template<typename T , typename U , typename... types>
bool monolish::util::is_same_device_mem_stat ( const T &  arg1,
const U &  arg2,
const types &...  args 
)

compare same device memory status

Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 889 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_size() [1/14]

template<typename T >
bool monolish::util::is_same_size ( const matrix::COO< T > &  A,
const matrix::COO< T > &  B 
)

compare row and col size

Parameters
ACOO matrix
BCOO matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [2/14]

template<typename T >
bool monolish::util::is_same_size ( const matrix::CRS< T > &  A,
const matrix::CRS< T > &  B 
)

compare row and col size

Parameters
ACOO matrix
BCOO matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [3/14]

template<typename T >
bool monolish::util::is_same_size ( const matrix::Dense< T > &  A,
const matrix::Dense< T > &  B 
)

compare row and col size

Parameters
ADense matrix
BDense matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [4/14]

template<typename T , typename U >
bool monolish::util::is_same_size ( const matrix::Dense< U > &  A,
const view_Dense< T, U > &  B 
)

compare row and col size

Parameters
ADense matrix
BDense matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [5/14]

template<typename T >
bool monolish::util::is_same_size ( const matrix::LinearOperator< T > &  A,
const matrix::LinearOperator< T > &  B 
)

compare row and col size

Parameters
ALinearOperator matrix
BLinearOperator matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [6/14]

template<typename T , typename U , typename V , typename... types>
bool monolish::util::is_same_size ( const T &  arg1,
const U &  arg2,
const V &  arg3,
const types &...  args 
)

compare matrix size

Definition at line 862 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_size() [7/14]

template<typename T , typename U >
bool monolish::util::is_same_size ( const T &  x,
const U &  y 
)

compare size of vector or 1Dview (same as is_same_structure())

Parameters
xmonolish vector
ymonolish vector
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 677 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ is_same_size() [8/14]

template<typename T >
bool monolish::util::is_same_size ( const tensor::tensor_COO< T > &  A,
const tensor::tensor_COO< T > &  B 
)

compare shape

Parameters
ACOO tensor
BCOO tensor
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [9/14]

template<typename T >
bool monolish::util::is_same_size ( const tensor::tensor_Dense< T > &  A,
const tensor::tensor_Dense< T > &  B 
)

compare shape

Parameters
ADense tensor
BDense tensor
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [10/14]

template<typename T , typename U >
bool monolish::util::is_same_size ( const tensor::tensor_Dense< U > &  A,
const view_tensor_Dense< T, U > &  B 
)

compare shape

Parameters
ADense tensor
BDense tensor
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [11/14]

template<typename T , typename U >
bool monolish::util::is_same_size ( const view_Dense< T, U > &  A,
const matrix::Dense< U > &  B 
)

compare row and col size

Parameters
ADense matrix
BDense matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [12/14]

template<typename T , typename U , typename V >
bool monolish::util::is_same_size ( const view_Dense< T, V > &  A,
const view_Dense< U, V > &  B 
)

compare row and col size

Parameters
ADense matrix
BDense matrix
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [13/14]

template<typename T , typename U >
bool monolish::util::is_same_size ( const view_tensor_Dense< T, U > &  A,
const tensor::tensor_Dense< U > &  B 
)

compare shape

Parameters
ADense tensor
BDense tensor
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_size() [14/14]

template<typename T , typename U , typename V >
bool monolish::util::is_same_size ( const view_tensor_Dense< T, V > &  A,
const view_tensor_Dense< U, V > &  B 
)

compare shape

Parameters
ADense tensor
BDense tensor
Returns
true is same size
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [1/18]

template<typename T >
bool monolish::util::is_same_structure ( const matrix::COO< T > &  A,
const matrix::COO< T > &  B 
)

compare structure using col_index and row_index, M, and N

Parameters
ACOO matrix
BCOO matrix
Returns
true is same structure
Note
  • # of computation: 2nnz
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [2/18]

template<typename T >
bool monolish::util::is_same_structure ( const matrix::CRS< T > &  A,
const matrix::CRS< T > &  B 
)

compare structure using structure_hash, M, and N

Parameters
ACRS matrix
BCRS matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [3/18]

template<typename T >
bool monolish::util::is_same_structure ( const matrix::Dense< T > &  A,
const matrix::Dense< T > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [4/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const matrix::Dense< U > &  A,
const view_Dense< T, U > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [5/18]

template<typename T >
bool monolish::util::is_same_structure ( const matrix::LinearOperator< T > &  A,
const matrix::LinearOperator< T > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ALinearOperator matrix
BLinearOperator matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [6/18]

template<typename T , typename U , typename V , typename... types>
bool monolish::util::is_same_structure ( const T &  A,
const U &  B,
const V &  C,
const types &...  args 
)

compare matrix structure

Definition at line 660 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_structure() [7/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const T  A,
const U  B 
)

compare matrix structure

Definition at line 404 of file monolish_common.hpp.

Here is the caller graph for this function:

◆ is_same_structure() [8/18]

template<typename T >
bool monolish::util::is_same_structure ( const tensor::tensor_COO< T > &  A,
const tensor::tensor_COO< T > &  B 
)

compare structure using col_index and row_index, M, and N

Parameters
ACOO matrix
BCOO matrix
Returns
true is same structure
Note
  • # of computation: 2nnz
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [9/18]

template<typename T >
bool monolish::util::is_same_structure ( const tensor::tensor_Dense< T > &  A,
const tensor::tensor_Dense< T > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [10/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const tensor::tensor_Dense< U > &  A,
const view_tensor_Dense< T, U > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [11/18]

template<typename T >
bool monolish::util::is_same_structure ( const vector< T > &  x,
const vector< T > &  y 
)

compare structure of vector (same as is_same_size())

Parameters
xmonolish vector
ymonolish vector
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 420 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_structure() [12/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const vector< U > &  x,
const view1D< T, U > &  y 
)

compare structure of vector (same as is_same_size())

Parameters
xmonolish vector
ymonolish vector
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 453 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_structure() [13/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const view1D< T, U > &  x,
const vector< U > &  y 
)

compare structure of vector (same as is_same_size())

Parameters
xmonolish vector
ymonolish vector
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 436 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_structure() [14/18]

template<typename T , typename U , typename V >
bool monolish::util::is_same_structure ( const view1D< T, V > &  x,
const view1D< U, V > &  y 
)

compare structure of vector (same as is_same_size())

Parameters
xmonolish vector
ymonolish vector
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

Definition at line 470 of file monolish_common.hpp.

Here is the call graph for this function:

◆ is_same_structure() [15/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const view_Dense< T, U > &  A,
const matrix::Dense< U > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [16/18]

template<typename T , typename U , typename V >
bool monolish::util::is_same_structure ( const view_Dense< T, V > &  A,
const view_Dense< U, V > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [17/18]

template<typename T , typename U >
bool monolish::util::is_same_structure ( const view_tensor_Dense< T, U > &  A,
const tensor::tensor_Dense< U > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false

◆ is_same_structure() [18/18]

template<typename T , typename U , typename V >
bool monolish::util::is_same_structure ( const view_tensor_Dense< T, V > &  A,
const view_tensor_Dense< U, V > &  B 
)

compare structure using M and N (same as is_same_size())

Parameters
ADense matrix
BDense matrix
Returns
true is same structure
Note
  • # of computation: 1
  • Multi-threading: false
  • GPU acceleration: false