Template Function ImmersX::matrix_operator(std::shared_ptr<MatrixType>)

Function Documentation

template<typename VectorType, typename MatrixType>
MaterializedOperator<VectorType, MatrixType> ImmersX::matrix_operator(std::shared_ptr<MatrixType> matrix)

Build a payload-free operator whose callbacks own the matrix.

Materialization shares that storage; consumers that modify it must clone shared matrices, as the matrix-backed algebra below does.