Skip to content

Commit 10b18d8

Browse files
committed
cc: rename axes -> components
Component name feels more appropriate
1 parent 08eb825 commit 10b18d8

29 files changed

Lines changed: 852 additions & 816 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ std::cout << io::pretty << m1 << io::ugly << "\n";
180180

181181
#### Memory buffers as vectors
182182

183-
A memory buffer can be accessed as a container of vectors with certain properties (size, axes). A constant buffer can be used to read data in a structured manner, a non-costant buffer can be used to modify data in the buffer via `vector_view` and `memory_vector_view` utility classes. A `vector_view` is for reading a single element, `memory_vector_view` is for using a buffer as a 'container' of vectors.
183+
A memory buffer can be accessed as a container of vectors with certain properties (size, components). A constant buffer can be used to read data in a structured manner, a non-costant buffer can be used to modify data in the buffer via `vector_view` and `memory_vector_view` utility classes. A `vector_view` is for reading a single element, `memory_vector_view` is for using a buffer as a 'container' of vectors.
184184

185185
```C++
186186
#include <psst/math/vector_view.hpp>

benchmark/make_test_data.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ using dimension_count = std::integral_constant<std::size_t, N>;
2222
// Vector 3
2323
//----------------------------------------------------------------------------
2424
template <typename T>
25-
constexpr vector<T, 3, axes::xyzw> make_test_vector(dimension_count<3> const&)
25+
constexpr vector<T, 3, components::xyzw> make_test_vector(dimension_count<3> const&)
2626
{
2727
return {1, 2, 3};
2828
}
@@ -31,7 +31,7 @@ constexpr vector<T, 3, axes::xyzw> make_test_vector(dimension_count<3> const&)
3131
// Vector 4
3232
//----------------------------------------------------------------------------
3333
template <typename T>
34-
constexpr vector<T, 4, axes::xyzw> make_test_vector(dimension_count<4> const&)
34+
constexpr vector<T, 4, components::xyzw> make_test_vector(dimension_count<4> const&)
3535
{
3636
return {1, 2, 3, 4};
3737
}
@@ -40,7 +40,7 @@ constexpr vector<T, 4, axes::xyzw> make_test_vector(dimension_count<4> const&)
4040
// Vector 10
4141
//----------------------------------------------------------------------------
4242
template <typename T>
43-
constexpr vector<T, 10, axes::none> make_test_vector(dimension_count<10> const&)
43+
constexpr vector<T, 10, components::none> make_test_vector(dimension_count<10> const&)
4444
{
4545
return {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
4646
}
@@ -115,7 +115,7 @@ constexpr matrix<T, 4, 3> make_test_matrix(traits::matrix_size<4, 3> const&)
115115
// Matrix 10x10
116116
//----------------------------------------------------------------------------
117117
template <typename T>
118-
constexpr matrix<T, 10, 10, axes::none> make_test_matrix(traits::matrix_size<10, 10> const&)
118+
constexpr matrix<T, 10, 10, components::none> make_test_matrix(traits::matrix_size<10, 10> const&)
119119
{
120120
// clang-format off
121121
return

0 commit comments

Comments
 (0)