Pressio / pressio

core C++ library
Other
45 stars 7 forks source link

ops: eigen: revise `clone` #573

Closed mzuzek closed 1 year ago

mzuzek commented 1 year ago

refs #517

Overloads

Eigen clone overloads:

function input T
T clone( T ) Eigen vectors or matrix

Tests

Unit tests (in tests/functional_small/ops/):

file name test name tested type
ops_eigen_vector.cc ops_eigen.vector_clone Eigen::VectorXd
ops_eigen_matrix.cc ops_eigen.dense_matrix_clone Eigen::MatrixXd
mzuzek commented 1 year ago

please remove more all overloads that operate on expressions. For now i don't want to clone an expression. Before we do this, we need to think about what semantics we want that to have.

ok, fixed on dcfca3834b0226ff8912b900b2308ddd66b9d14b