Skip to content

Commit 0b52884

Browse files
Alex-PLACETgithub-actions[bot]Copilot
authored
Add fixed shape tensor (#18)
* Release version 0.2.0 * Add fixed shape tensor * wip * wip * try * fix * Use simd json * Add documentation * wip * wip * wip * wip * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Satisfy layout concept * remove defaults constructtors/destructor --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9172562 commit 0b52884

13 files changed

+2738
-43
lines changed

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,16 +182,18 @@ set(SPARROW_EXTENSIONS_HEADERS
182182
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/config/sparrow_extensions_version.hpp
183183

184184
# ./
185-
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/uuid_array.hpp
186-
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/json_array.hpp
187185
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/bool8_array.hpp
186+
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/fixed_shape_tensor.hpp
187+
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/json_array.hpp
188+
${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions/uuid_array.hpp
188189

189190
#../
190191
# ${SPARROW_EXTENSIONS_INCLUDE_DIR}/sparrow_extensions.hpp
191192
)
192193

193194
set(SPARROW_EXTENSIONS_SRC
194195
${SPARROW_EXTENSIONS_SOURCE_DIR}/bool8_array.cpp
196+
${SPARROW_EXTENSIONS_SOURCE_DIR}/fixed_shape_tensor.cpp
195197
${SPARROW_EXTENSIONS_SOURCE_DIR}/json_array.cpp
196198
${SPARROW_EXTENSIONS_SOURCE_DIR}/uuid_array.cpp
197199
${SPARROW_EXTENSIONS_SOURCE_DIR}/variable_shape_tensor.cpp
@@ -247,7 +249,7 @@ target_include_directories(sparrow-extensions PUBLIC
247249

248250
set_target_properties(sparrow-extensions PROPERTIES CMAKE_CXX_EXTENSIONS OFF)
249251
target_compile_features(sparrow-extensions PUBLIC cxx_std_20)
250-
target_link_libraries(sparrow-extensions PUBLIC sparrow::sparrow ${SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES})
252+
target_link_libraries(sparrow-extensions PUBLIC ${SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES})
251253

252254
if(ENABLE_COVERAGE)
253255
enable_coverage(sparrow-extensions)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Extension types for the [sparrow](https://github.com/man-group/sparrow) library
1818
- `uuid_array`: Arrow-compatible array for storing UUID values as 16-byte fixed-width binary according to the `arrow.uuid` extension type specification.
1919
- `json_array`: Arrow-compatible array for storing JSON values as UTF-8 strings according to the `arrow.json` extension type specification.
2020
- `bool8_array`: Arrow-compatible array for storing boolean values as 8-bit integers according to the `arrow.bool8` extension type specification.
21+
- `fixed_shape_tensor_array`: Arrow-compatible array for storing fixed-shape tensors according to the `arrow.fixed_shape_tensor` extension type specification.
22+
2123
## Installation
2224

2325
### Install from sources

cmake/external_dependencies.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ if(NOT TARGET sparrow::sparrow)
7878
add_library(sparrow::sparrow ALIAS sparrow)
7979
endif()
8080

81-
# add sparrow::sparrow to SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES list
8281
set(SPARROW_EXTENSIONS_INTERFACE_DEPENDENCIES sparrow::sparrow)
8382

8483
find_package_or_fetch(

0 commit comments

Comments
 (0)