Open lgarithm opened 6 years ago
Those tensors should be implemented as
using vec2d = basic_tensor<R, 2, std::integer_sequence<2>>;
using vec3d = basic_tensor<R, 2, std::integer_sequence<3>>;
using pos2d = basic_tensor<R, 2, std::integer_sequence<2>>;
using pos3d = basic_tensor<R, 2, std::integer_sequence<3>>;
using mat2d = basic_tensor<R, 3, std::integer_sequence<2, 2>>;
using mat3d = basic_tensor<R, 3, std::integer_sequence<3, 3>>;
using mat4d = basic_tensor<R, 3, std::integer_sequence<4, 4>>;
without over head.
And they should be able to replace https://github.com/lgarithm/drawings/tree/master/engine/src/rey/linear without losing performance.
Provide tensors with low rank and fixed dimensions, for geometry and graphics. Especially,
what's more https://en.wikipedia.org/wiki/Generalized_coordinates