Skip to content

REFACTOR (tensors): introduce explicit 2D/3D spatial types and fix op… - #54

Merged
itchinda merged 1 commit into
masterfrom
TEC_Assembler
May 16, 2026
Merged

REFACTOR (tensors): introduce explicit 2D/3D spatial types and fix op…#54
itchinda merged 1 commit into
masterfrom
TEC_Assembler

Conversation

@itchinda

Copy link
Copy Markdown
Owner

…erator overloads

  • Replaced the generic TensorO2.h with dimension-specific Tensor2D.h and Tensor3D.h to uniformize the API and clarify spatial domains.
  • Introduced Vector2D.h and Vector3D.h to provide lightweight geometric operations (norm, dot, cross, and component-wise products) for FEM routines.
  • Fixed ambiguous overload resolution warnings during tensor arithmetic by adding missing const qualifiers to member operators (operator*, operator+, operator-) in 3D tensor classes.
  • Standardized component access and initialization specifically for 2D and 3D contexts.
  • Maintained strict [[nodiscard]], constexpr, and noexcept guarantees across all new spatial mathematical entities for optimal compile-time evaluation.

…erator overloads

- Replaced the generic `TensorO2.h` with dimension-specific `Tensor2D.h` and `Tensor3D.h` to uniformize the API and clarify spatial domains.
- Introduced `Vector2D.h` and `Vector3D.h` to provide lightweight geometric operations (norm, dot, cross, and component-wise products) for FEM routines.
- Fixed ambiguous overload resolution warnings during tensor arithmetic by adding missing `const` qualifiers to member operators (`operator*`, `operator+`, `operator-`) in 3D tensor classes.
- Standardized component access and initialization specifically for 2D and 3D contexts.
- Maintained strict `[[nodiscard]]`, `constexpr`, and `noexcept` guarantees across all new spatial mathematical entities for optimal compile-time evaluation.
@itchinda
itchinda merged commit d54cba5 into master May 16, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant