Implements unary resize and conservativeResize

See merge request oss/rotgen!25
This commit is contained in:
Joel Falcou 2025-09-18 20:05:33 +02:00
parent c6316f9bc9
commit a864e2cf96
5 changed files with 47 additions and 9 deletions

View file

@ -11,16 +11,16 @@
TTS_CASE_TPL("System solver using QR", rotgen::tests::types)
<typename T, typename O>( tts::type< tts::types<T,O>> )
{
rotgen::matrix<T,rotgen::Dynamic,rotgen::Dynamic,O::value>
rotgen::matrix<T,rotgen::Dynamic,rotgen::Dynamic>
a { { 2.3, -1, 0.1}
, {-1.6, 2.6, -1}
, { 0.3, -1, 2}
};
rotgen::matrix<T,rotgen::Dynamic,1,O::value> b(3,1);
rotgen::matrix<T,rotgen::Dynamic,1> b(3,1);
b(0) = b(2) = 1; b(1) = 0;
rotgen::matrix<T,rotgen::Dynamic,rotgen::Dynamic,O::value> r(3,1), error;
rotgen::matrix<T,rotgen::Dynamic,rotgen::Dynamic> r(3,1), error;
auto x = rotgen::extract(r,0,0,3,1);
rotgen::solver::qr(x, a, b);