fix unaligned access in trmv

This commit is contained in:
Charles Schlosser 2024-03-03 04:20:09 +00:00 committed by Antonio Sánchez
parent 23f6c26857
commit 3f3144f538

View File

@ -309,7 +309,7 @@ struct trmv_selector<Mode, RowMajor> {
Index size = actualRhs.size();
EIGEN_DENSE_STORAGE_CTOR_PLUGIN
#endif
Map<typename ActualRhsTypeCleaned::PlainObject, Eigen::AlignedMax>(buffer, actualRhs.size()) = actualRhs;
smart_copy(actualRhsPtr, actualRhsPtr + actualRhs.size(), buffer);
actualRhsPtr = buffer;
}
// Deallocate only if malloced.