dal-include 2026.3.0__py2.py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. dal_include-2026.3.0.data/data/Library/include/daal.h +236 -0
  2. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm.h +41 -0
  3. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_base.h +34 -0
  4. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_base_common.h +138 -0
  5. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_base_mode.h +187 -0
  6. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_base_mode_impl.h +297 -0
  7. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_container_base.h +232 -0
  8. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_container_base_batch.h +144 -0
  9. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_kernel.h +60 -0
  10. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/algorithm_types.h +547 -0
  11. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/analysis.h +82 -0
  12. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/cholesky/cholesky.h +141 -0
  13. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/cholesky/cholesky_types.h +184 -0
  14. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_model.h +137 -0
  15. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_predict.h +140 -0
  16. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_predict_types.h +238 -0
  17. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_training_batch.h +127 -0
  18. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_training_online.h +144 -0
  19. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/classifier_training_types.h +257 -0
  20. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/classifier/tree_traverse.h +86 -0
  21. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/covariance/covariance_batch.h +229 -0
  22. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/covariance/covariance_distributed.h +495 -0
  23. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/covariance/covariance_online.h +266 -0
  24. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/covariance/covariance_types.h +454 -0
  25. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/dbscan/dbscan_batch.h +159 -0
  26. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/dbscan/dbscan_distributed.h +1577 -0
  27. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/dbscan/dbscan_types.h +2341 -0
  28. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_model.h +137 -0
  29. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_model_builder.h +210 -0
  30. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_predict.h +168 -0
  31. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_predict_types.h +144 -0
  32. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_training_batch.h +168 -0
  33. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_classification_training_types.h +216 -0
  34. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_regression_model.h +137 -0
  35. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_regression_predict.h +135 -0
  36. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_regression_predict_types.h +219 -0
  37. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_regression_training_batch.h +165 -0
  38. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_regression_training_types.h +286 -0
  39. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/decision_forest/decision_forest_training_parameter.h +172 -0
  40. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/distance/correlation_distance.h +134 -0
  41. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/distance/correlation_distance_types.h +177 -0
  42. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/distance/cosine_distance.h +134 -0
  43. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/distance/cosine_distance_types.h +177 -0
  44. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/elastic_net/elastic_net_model.h +87 -0
  45. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/elastic_net/elastic_net_predict.h +136 -0
  46. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/elastic_net/elastic_net_predict_types.h +183 -0
  47. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/elastic_net/elastic_net_training_batch.h +162 -0
  48. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/elastic_net/elastic_net_training_types.h +356 -0
  49. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/em/em_gmm.h +135 -0
  50. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/em/em_gmm_covariance_storage_id.h +52 -0
  51. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/em/em_gmm_init_batch.h +133 -0
  52. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/em/em_gmm_init_types.h +264 -0
  53. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/em/em_gmm_types.h +310 -0
  54. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/engine.h +112 -0
  55. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/engine_family.h +108 -0
  56. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/engine_types.h +196 -0
  57. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mcg59/mcg59.h +149 -0
  58. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mcg59/mcg59_types.h +64 -0
  59. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mrg32k3a/mrg32k3a.h +152 -0
  60. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mrg32k3a/mrg32k3a_types.h +65 -0
  61. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mt19937/mt19937.h +149 -0
  62. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mt19937/mt19937_types.h +64 -0
  63. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mt2203/mt2203.h +150 -0
  64. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/mt2203/mt2203_types.h +64 -0
  65. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/philox4x32x10/philox4x32x10.h +152 -0
  66. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/engines/philox4x32x10/philox4x32x10_types.h +65 -0
  67. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_model.h +153 -0
  68. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_model_builder.h +179 -0
  69. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_predict.h +165 -0
  70. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_predict_types.h +243 -0
  71. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_training_batch.h +164 -0
  72. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_classification_training_types.h +190 -0
  73. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_model.h +156 -0
  74. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_model_builder.h +175 -0
  75. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_predict.h +149 -0
  76. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_predict_types.h +244 -0
  77. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_training_batch.h +163 -0
  78. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_regression_training_types.h +254 -0
  79. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/gradient_boosted_trees/gbt_training_parameter.h +132 -0
  80. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_model.h +295 -0
  81. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_predict_ratings_batch.h +142 -0
  82. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_predict_ratings_distributed.h +198 -0
  83. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_predict_ratings_types.h +369 -0
  84. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_batch.h +137 -0
  85. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_distributed.h +474 -0
  86. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_init_batch.h +139 -0
  87. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_init_distributed.h +257 -0
  88. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_init_types.h +562 -0
  89. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/implicit_als/implicit_als_training_types.h +843 -0
  90. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/bf_knn_classification_model.h +227 -0
  91. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/bf_knn_classification_predict.h +176 -0
  92. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/bf_knn_classification_predict_types.h +193 -0
  93. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/bf_knn_classification_training_batch.h +174 -0
  94. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/bf_knn_classification_training_types.h +139 -0
  95. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/kdtree_knn_classification_model.h +209 -0
  96. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/kdtree_knn_classification_predict.h +161 -0
  97. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/kdtree_knn_classification_predict_types.h +193 -0
  98. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/kdtree_knn_classification_training_batch.h +159 -0
  99. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/k_nearest_neighbors/kdtree_knn_classification_training_types.h +138 -0
  100. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function.h +121 -0
  101. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function_linear.h +137 -0
  102. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function_rbf.h +136 -0
  103. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function_types.h +201 -0
  104. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function_types_linear.h +111 -0
  105. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kernel_function/kernel_function_types_rbf.h +110 -0
  106. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_batch.h +156 -0
  107. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_distributed.h +383 -0
  108. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_init_batch.h +164 -0
  109. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_init_distributed.h +873 -0
  110. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_init_types.h +1135 -0
  111. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/kmeans/kmeans_types.h +425 -0
  112. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/lasso_regression/lasso_regression_model.h +87 -0
  113. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/lasso_regression/lasso_regression_predict.h +136 -0
  114. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/lasso_regression/lasso_regression_predict_types.h +183 -0
  115. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/lasso_regression/lasso_regression_training_batch.h +166 -0
  116. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/lasso_regression/lasso_regression_training_types.h +354 -0
  117. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_model.h +142 -0
  118. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_predict.h +91 -0
  119. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_predict_types.h +211 -0
  120. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_training_batch.h +74 -0
  121. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_training_online.h +83 -0
  122. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_model/linear_model_training_types.h +229 -0
  123. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_model.h +103 -0
  124. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_model_builder.h +149 -0
  125. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_ne_model.h +83 -0
  126. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_predict.h +165 -0
  127. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_predict_types.h +179 -0
  128. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_qr_model.h +84 -0
  129. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_training_batch.h +151 -0
  130. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_training_distributed.h +275 -0
  131. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_training_online.h +155 -0
  132. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/linear_regression/linear_regression_training_types.h +430 -0
  133. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_model.h +101 -0
  134. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_model_builder.h +204 -0
  135. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_predict.h +164 -0
  136. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_predict_types.h +153 -0
  137. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_training_batch.h +166 -0
  138. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/logistic_regression/logistic_regression_training_types.h +163 -0
  139. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/model.h +85 -0
  140. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/moments/low_order_moments_batch.h +206 -0
  141. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/moments/low_order_moments_distributed.h +255 -0
  142. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/moments/low_order_moments_online.h +172 -0
  143. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/moments/low_order_moments_types.h +422 -0
  144. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_model.h +210 -0
  145. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_model_builder.h +127 -0
  146. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_predict.h +181 -0
  147. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_predict_types.h +196 -0
  148. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_train.h +168 -0
  149. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/multi_class_classifier/multi_class_classifier_train_types.h +121 -0
  150. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/normalization/minmax.h +141 -0
  151. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/normalization/minmax_types.h +244 -0
  152. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/normalization/zscore.h +227 -0
  153. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/normalization/zscore_types.h +309 -0
  154. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/coordinate_descent/coordinate_descent_batch.h +162 -0
  155. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/coordinate_descent/coordinate_descent_types.h +195 -0
  156. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/iterative_solver/iterative_solver_batch.h +124 -0
  157. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/iterative_solver/iterative_solver_types.h +322 -0
  158. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/lbfgs/lbfgs_batch.h +157 -0
  159. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/lbfgs/lbfgs_types.h +250 -0
  160. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/cross_entropy_loss_batch.h +156 -0
  161. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/cross_entropy_loss_types.h +178 -0
  162. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/logistic_loss_batch.h +155 -0
  163. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/logistic_loss_types.h +177 -0
  164. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/mse_batch.h +149 -0
  165. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/mse_types.h +224 -0
  166. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/objective_function_batch.h +130 -0
  167. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/objective_function_types.h +253 -0
  168. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/precomputed_batch.h +153 -0
  169. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/precomputed_types.h +58 -0
  170. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/sum_of_functions_batch.h +127 -0
  171. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/objective_function/sum_of_functions_types.h +166 -0
  172. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/optimization_solver/optimization_solver_batch.h +63 -0
  173. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/pca_batch.h +144 -0
  174. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/pca_distributed.h +361 -0
  175. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/pca_online.h +295 -0
  176. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/pca_types.h +850 -0
  177. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/transform/pca_transform_batch.h +143 -0
  178. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pca/transform/pca_transform_types.h +253 -0
  179. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pivoted_qr/pivoted_qr_batch.h +134 -0
  180. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/pivoted_qr/pivoted_qr_types.h +196 -0
  181. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/prediction.h +62 -0
  182. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/qr/qr_batch.h +134 -0
  183. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/qr/qr_distributed.h +372 -0
  184. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/qr/qr_online.h +174 -0
  185. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/qr/qr_types.h +662 -0
  186. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_model.h +88 -0
  187. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_predict.h +101 -0
  188. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_predict_types.h +193 -0
  189. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_training_batch.h +110 -0
  190. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_training_online.h +115 -0
  191. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/regression_training_types.h +212 -0
  192. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/regression/tree_traverse.h +90 -0
  193. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_model.h +123 -0
  194. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_ne_model.h +85 -0
  195. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_predict.h +167 -0
  196. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_predict_types.h +186 -0
  197. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_training_batch.h +150 -0
  198. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_training_distributed.h +268 -0
  199. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_training_online.h +153 -0
  200. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/ridge_regression/ridge_regression_training_types.h +432 -0
  201. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svd/svd_batch.h +132 -0
  202. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svd/svd_distributed.h +353 -0
  203. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svd/svd_online.h +193 -0
  204. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svd/svd_types.h +674 -0
  205. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_model.h +170 -0
  206. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_model_builder.h +174 -0
  207. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_predict.h +139 -0
  208. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_predict_types.h +125 -0
  209. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_train.h +163 -0
  210. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/svm/svm_train_types.h +119 -0
  211. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/training.h +70 -0
  212. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/tree_utils/tree_utils.h +100 -0
  213. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/tree_utils/tree_utils_classification.h +70 -0
  214. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/tree_utils/tree_utils_regression.h +69 -0
  215. dal_include-2026.3.0.data/data/Library/include/dal/algorithms/tsne/tsne_gradient_descent.h +41 -0
  216. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/aos_numeric_table.h +530 -0
  217. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/arrow_numeric_table.h +451 -0
  218. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/csr_numeric_table.h +1076 -0
  219. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/data_archive.h +1024 -0
  220. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/data_block.h +141 -0
  221. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/data_collection.h +336 -0
  222. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/data_dictionary.h +466 -0
  223. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/data_serialize.h +159 -0
  224. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/factory.h +133 -0
  225. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/homogen_numeric_table.h +960 -0
  226. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/input_collection.h +43 -0
  227. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/internal/base_arrow_numeric_table.h +79 -0
  228. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/internal/conversion.h +151 -0
  229. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/internal/finiteness_checker.h +43 -0
  230. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/internal/roc_auc_score.h +36 -0
  231. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/internal/train_test_split.h +41 -0
  232. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/memory_block.h +115 -0
  233. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/merged_numeric_table.h +447 -0
  234. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/numeric_table.h +977 -0
  235. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/numeric_types.h +47 -0
  236. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/row_merged_numeric_table.h +401 -0
  237. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data/soa_numeric_table.h +540 -0
  238. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/csv_data_source.h +453 -0
  239. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/csv_feature_manager.h +577 -0
  240. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/data_source.h +739 -0
  241. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/data_source_dictionary.h +283 -0
  242. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/data_source_utils.h +76 -0
  243. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/file_data_source.h +237 -0
  244. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/internal/csv_feature_utils.h +195 -0
  245. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/internal/data_source_options.h +49 -0
  246. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/csv/internal/default_modifiers.h +260 -0
  247. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/csv/internal/engine.h +225 -0
  248. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/csv/modifier.h +180 -0
  249. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/csv/shortcuts.h +91 -0
  250. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/internal/engine.h +421 -0
  251. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/modifiers/modifier.h +157 -0
  252. dal_include-2026.3.0.data/data/Library/include/dal/data_management/data_source/string_data_source.h +178 -0
  253. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/compatibility.h +98 -0
  254. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/defines.h +110 -0
  255. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/identifiers.h +154 -0
  256. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/indices.h +132 -0
  257. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/internal/helpers.h +281 -0
  258. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/internal/identifiers_impl.h +278 -0
  259. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/internal/indices_impl.h +143 -0
  260. dal_include-2026.3.0.data/data/Library/include/dal/data_management/features/shortcuts.h +209 -0
  261. dal_include-2026.3.0.data/data/Library/include/dal/services/base.h +49 -0
  262. dal_include-2026.3.0.data/data/Library/include/dal/services/buffer_view.h +133 -0
  263. dal_include-2026.3.0.data/data/Library/include/dal/services/collection.h +384 -0
  264. dal_include-2026.3.0.data/data/Library/include/dal/services/daal_atomic_int.h +264 -0
  265. dal_include-2026.3.0.data/data/Library/include/dal/services/daal_defines.h +670 -0
  266. dal_include-2026.3.0.data/data/Library/include/dal/services/daal_memory.h +108 -0
  267. dal_include-2026.3.0.data/data/Library/include/dal/services/daal_shared_ptr.h +462 -0
  268. dal_include-2026.3.0.data/data/Library/include/dal/services/daal_string.h +239 -0
  269. dal_include-2026.3.0.data/data/Library/include/dal/services/env_detect.h +183 -0
  270. dal_include-2026.3.0.data/data/Library/include/dal/services/error_handling.h +600 -0
  271. dal_include-2026.3.0.data/data/Library/include/dal/services/error_id.h +110 -0
  272. dal_include-2026.3.0.data/data/Library/include/dal/services/error_indexes.h +445 -0
  273. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/collection.h +258 -0
  274. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/daal_kernel_defines.h +32 -0
  275. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/daal_load_win_dynamic_lib.h +39 -0
  276. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/dynamic_lib_helper.h +127 -0
  277. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/error_handling_helpers.h +75 -0
  278. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/hash_table.h +132 -0
  279. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/status_to_error_id.h +40 -0
  280. dal_include-2026.3.0.data/data/Library/include/dal/services/internal/utilities.h +69 -0
  281. dal_include-2026.3.0.data/data/Library/include/dal/services/library_version_info.h +87 -0
  282. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/common.hpp +200 -0
  283. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/compute.hpp +31 -0
  284. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/compute_types.hpp +384 -0
  285. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/detail/compute_ops.hpp +80 -0
  286. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/detail/finalize_compute_ops.hpp +97 -0
  287. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/detail/partial_compute_ops.hpp +78 -0
  288. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/finalize_compute.hpp +31 -0
  289. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics/partial_compute.hpp +31 -0
  290. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/basic_statistics.hpp +21 -0
  291. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/chebyshev_distance/common.hpp +127 -0
  292. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/common.hpp +123 -0
  293. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/detail/select_kernel.hpp +66 -0
  294. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/detail/vertex_partitioning_default_kernel.hpp +81 -0
  295. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/detail/vertex_partitioning_ops.hpp +56 -0
  296. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/detail/vertex_partitioning_types.hpp +37 -0
  297. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/vertex_partitioning.hpp +30 -0
  298. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components/vertex_partitioning_types.hpp +105 -0
  299. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/connected_components.hpp +22 -0
  300. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/correlation_distance/common.hpp +127 -0
  301. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/correlation_distance/compute.hpp +31 -0
  302. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/correlation_distance/compute_types.hpp +116 -0
  303. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/correlation_distance/detail/compute_ops.hpp +96 -0
  304. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/correlation_distance.hpp +19 -0
  305. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/cosine_distance/common.hpp +127 -0
  306. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/cosine_distance/compute.hpp +31 -0
  307. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/cosine_distance/compute_types.hpp +116 -0
  308. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/cosine_distance/detail/compute_ops.hpp +96 -0
  309. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/cosine_distance.hpp +19 -0
  310. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/common.hpp +202 -0
  311. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/compute.hpp +31 -0
  312. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/compute_types.hpp +309 -0
  313. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/detail/compute_ops.hpp +121 -0
  314. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/detail/finalize_compute_ops.hpp +91 -0
  315. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/detail/partial_compute_ops.hpp +81 -0
  316. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/finalize_compute.hpp +31 -0
  317. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/parameters/cpu/compute_parameters.hpp +32 -0
  318. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/parameters/gpu/compute_parameters.hpp +32 -0
  319. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance/partial_compute.hpp +31 -0
  320. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/covariance.hpp +21 -0
  321. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/dbscan/common.hpp +258 -0
  322. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/dbscan/compute.hpp +31 -0
  323. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/dbscan/compute_types.hpp +174 -0
  324. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/dbscan/detail/compute_ops.hpp +75 -0
  325. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/dbscan.hpp +19 -0
  326. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/common.hpp +768 -0
  327. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/detail/infer_ops.hpp +102 -0
  328. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/detail/train_ops.hpp +120 -0
  329. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/infer.hpp +31 -0
  330. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/infer_types.hpp +178 -0
  331. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/parameters/cpu/infer_parameters.hpp +59 -0
  332. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/parameters/cpu/train_parameters.hpp +89 -0
  333. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/parameters/gpu/infer_parameters.hpp +33 -0
  334. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/parameters/gpu/train_parameters.hpp +33 -0
  335. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/train.hpp +31 -0
  336. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest/train_types.hpp +284 -0
  337. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_forest.hpp +20 -0
  338. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_tree/common.hpp +207 -0
  339. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/decision_tree/detail/node_visitor.hpp +74 -0
  340. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/finiteness_checker/common.hpp +140 -0
  341. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/finiteness_checker/compute.hpp +31 -0
  342. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/finiteness_checker/compute_types.hpp +98 -0
  343. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/finiteness_checker/detail/compute_ops.hpp +76 -0
  344. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/finiteness_checker.hpp +19 -0
  345. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/hdbscan/common.hpp +408 -0
  346. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/hdbscan/compute.hpp +31 -0
  347. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/hdbscan/compute_types.hpp +197 -0
  348. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/hdbscan/detail/compute_ops.hpp +83 -0
  349. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/hdbscan.hpp +19 -0
  350. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/common.hpp +170 -0
  351. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/detail/select_kernel.hpp +65 -0
  352. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/detail/service.hpp +64 -0
  353. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/detail/vertex_similarity_default_kernel.hpp +78 -0
  354. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/detail/vertex_similarity_ops.hpp +91 -0
  355. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/detail/vertex_similarity_types.hpp +40 -0
  356. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/vertex_similarity.hpp +30 -0
  357. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard/vertex_similarity_types.hpp +110 -0
  358. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/jaccard.hpp +22 -0
  359. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/common.hpp +265 -0
  360. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/detail/infer_ops.hpp +84 -0
  361. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/detail/train_init_centroids.hpp +89 -0
  362. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/detail/train_ops.hpp +91 -0
  363. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/infer.hpp +31 -0
  364. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/infer_types.hpp +144 -0
  365. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/train.hpp +31 -0
  366. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans/train_types.hpp +168 -0
  367. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans.hpp +20 -0
  368. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans_init/common.hpp +221 -0
  369. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans_init/compute.hpp +31 -0
  370. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans_init/compute_types.hpp +115 -0
  371. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans_init/detail/compute_ops.hpp +83 -0
  372. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/kmeans_init.hpp +19 -0
  373. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/common.hpp +378 -0
  374. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/detail/distance.hpp +111 -0
  375. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/detail/infer_ops.hpp +72 -0
  376. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/detail/train_ops.hpp +76 -0
  377. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/infer.hpp +32 -0
  378. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/infer_types.hpp +152 -0
  379. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/train.hpp +32 -0
  380. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn/train_types.hpp +137 -0
  381. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/knn.hpp +20 -0
  382. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_kernel/common.hpp +156 -0
  383. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_kernel/compute.hpp +31 -0
  384. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_kernel/compute_types.hpp +112 -0
  385. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_kernel/detail/compute_ops.hpp +95 -0
  386. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_kernel.hpp +19 -0
  387. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/common.hpp +237 -0
  388. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/detail/finalize_train_ops.hpp +127 -0
  389. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/detail/infer_ops.hpp +68 -0
  390. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/detail/partial_train_ops.hpp +124 -0
  391. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/detail/train_ops.hpp +143 -0
  392. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/finalize_train.hpp +31 -0
  393. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/infer.hpp +32 -0
  394. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/infer_types.hpp +111 -0
  395. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/parameters/cpu/train_parameters.hpp +38 -0
  396. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/parameters/gpu/train_parameters.hpp +38 -0
  397. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/partial_train.hpp +31 -0
  398. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/train.hpp +32 -0
  399. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression/train_types.hpp +340 -0
  400. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/linear_regression.hpp +22 -0
  401. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/common.hpp +294 -0
  402. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/detail/infer_ops.hpp +69 -0
  403. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/detail/optimizer.hpp +85 -0
  404. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/detail/train_ops.hpp +146 -0
  405. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/infer.hpp +32 -0
  406. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/infer_types.hpp +121 -0
  407. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/parameters/cpu/train_parameters.hpp +32 -0
  408. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/parameters/gpu/train_parameters.hpp +32 -0
  409. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/train.hpp +32 -0
  410. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression/train_types.hpp +197 -0
  411. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logistic_regression.hpp +20 -0
  412. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/logloss_objective/common.hpp +177 -0
  413. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/common.hpp +175 -0
  414. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/detail/select_kernel.hpp +69 -0
  415. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/detail/vertex_partitioning_default_kernel.hpp +127 -0
  416. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/detail/vertex_partitioning_ops.hpp +96 -0
  417. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/detail/vertex_partitioning_types.hpp +40 -0
  418. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/vertex_partitioning.hpp +30 -0
  419. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain/vertex_partitioning_types.hpp +136 -0
  420. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/louvain.hpp +22 -0
  421. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/minkowski_distance/common.hpp +148 -0
  422. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/newton_cg/common.hpp +162 -0
  423. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function/common.hpp +223 -0
  424. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function/compute.hpp +31 -0
  425. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function/compute_types.hpp +159 -0
  426. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function/detail/compute_ops.hpp +116 -0
  427. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function/detail/objective.hpp +86 -0
  428. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/objective_function.hpp +19 -0
  429. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/common.hpp +343 -0
  430. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/detail/finalize_train_ops.hpp +72 -0
  431. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/detail/infer_ops.hpp +97 -0
  432. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/detail/partial_train_ops.hpp +68 -0
  433. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/detail/train_ops.hpp +113 -0
  434. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/finalize_train.hpp +31 -0
  435. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/infer.hpp +31 -0
  436. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/infer_types.hpp +112 -0
  437. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/parameters/cpu/train_parameters.hpp +38 -0
  438. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/parameters/gpu/train_parameters.hpp +38 -0
  439. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/partial_train.hpp +31 -0
  440. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/train.hpp +31 -0
  441. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca/train_types.hpp +379 -0
  442. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/pca.hpp +22 -0
  443. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/polynomial_kernel/common.hpp +177 -0
  444. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/polynomial_kernel/compute.hpp +31 -0
  445. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/polynomial_kernel/compute_types.hpp +112 -0
  446. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/polynomial_kernel/detail/compute_ops.hpp +96 -0
  447. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/polynomial_kernel.hpp +19 -0
  448. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/rbf_kernel/common.hpp +141 -0
  449. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/rbf_kernel/compute.hpp +31 -0
  450. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/rbf_kernel/compute_types.hpp +112 -0
  451. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/rbf_kernel/detail/compute_ops.hpp +96 -0
  452. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/rbf_kernel.hpp +19 -0
  453. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/common.hpp +223 -0
  454. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/detail/select_kernel.hpp +66 -0
  455. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/detail/traverse_default_kernel.hpp +114 -0
  456. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/detail/traverse_ops.hpp +78 -0
  457. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/detail/traverse_types.hpp +37 -0
  458. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/traverse.hpp +30 -0
  459. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths/traverse_types.hpp +106 -0
  460. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/shortest_paths.hpp +22 -0
  461. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/sigmoid_kernel/common.hpp +161 -0
  462. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/sigmoid_kernel/compute.hpp +31 -0
  463. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/sigmoid_kernel/compute_types.hpp +112 -0
  464. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/sigmoid_kernel/detail/compute_ops.hpp +96 -0
  465. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/sigmoid_kernel.hpp +19 -0
  466. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/common.hpp +177 -0
  467. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/detail/graph_matching_default_kernel.hpp +128 -0
  468. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/detail/graph_matching_ops.hpp +94 -0
  469. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/detail/graph_matching_types.hpp +40 -0
  470. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/detail/select_kernel.hpp +105 -0
  471. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/graph_matching.hpp +30 -0
  472. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism/graph_matching_types.hpp +124 -0
  473. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/subgraph_isomorphism.hpp +22 -0
  474. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/common.hpp +573 -0
  475. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/detail/infer_ops.hpp +95 -0
  476. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/detail/kernel_function.hpp +165 -0
  477. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/detail/train_ops.hpp +89 -0
  478. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/infer.hpp +31 -0
  479. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/infer_types.hpp +148 -0
  480. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/train.hpp +31 -0
  481. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm/train_types.hpp +211 -0
  482. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/svm.hpp +20 -0
  483. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/common.hpp +152 -0
  484. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/detail/relabel_kernel.hpp +123 -0
  485. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/detail/select_kernel.hpp +66 -0
  486. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/detail/vertex_ranking_default_kernel.hpp +256 -0
  487. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/detail/vertex_ranking_ops.hpp +61 -0
  488. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/detail/vertex_ranking_types.hpp +37 -0
  489. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/vertex_ranking.hpp +30 -0
  490. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting/vertex_ranking_types.hpp +109 -0
  491. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/algo/triangle_counting.hpp +22 -0
  492. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/array.hpp +758 -0
  493. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/chunked_array.hpp +330 -0
  494. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/common.hpp +158 -0
  495. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/compute.hpp +65 -0
  496. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/archives.hpp +135 -0
  497. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/array_impl.hpp +456 -0
  498. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/array_utils.hpp +144 -0
  499. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/ccl/communicator.hpp +478 -0
  500. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/chunked_array_impl.hpp +242 -0
  501. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/chunked_array_utils.hpp +94 -0
  502. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/common.hpp +501 -0
  503. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/communicator.hpp +102 -0
  504. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/compute_ops.hpp +40 -0
  505. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu.hpp +107 -0
  506. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info.hpp +43 -0
  507. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info_arm_impl.hpp +43 -0
  508. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info_iface.hpp +51 -0
  509. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info_impl.hpp +49 -0
  510. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info_riscv64_impl.hpp +43 -0
  511. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/cpu_info_x86_impl.hpp +45 -0
  512. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/debug.hpp +121 -0
  513. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/dispatcher.hpp +52 -0
  514. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/dtype_dispatcher.hpp +128 -0
  515. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/error_messages.hpp +368 -0
  516. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/finalize_compute_ops.hpp +40 -0
  517. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/finalize_train_ops.hpp +40 -0
  518. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/global_context.hpp +46 -0
  519. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/global_context_impl.hpp +38 -0
  520. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/graph_matching_ops.hpp +43 -0
  521. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/hash_map.hpp +146 -0
  522. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/infer_ops.hpp +40 -0
  523. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/memory.hpp +205 -0
  524. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/memory_impl_dpc.hpp +110 -0
  525. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/memory_impl_host.hpp +94 -0
  526. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/mpi/communicator.hpp +416 -0
  527. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/ops_dispatcher.hpp +238 -0
  528. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/paged_vector.hpp +206 -0
  529. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/parameters/system_parameters.hpp +80 -0
  530. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/parameters/system_parameters_impl.hpp +59 -0
  531. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/partial_compute_ops.hpp +40 -0
  532. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/partial_train_ops.hpp +40 -0
  533. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/policy.hpp +147 -0
  534. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/profiler.hpp +99 -0
  535. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/read_ops.hpp +40 -0
  536. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/serialization.hpp +449 -0
  537. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/singleton.hpp +45 -0
  538. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/sparse_matrix_handle_impl.hpp +58 -0
  539. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/spmd_policy.hpp +104 -0
  540. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/threading.hpp +548 -0
  541. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/train_ops.hpp +40 -0
  542. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/traverse_ops.hpp +43 -0
  543. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/vertex_partitioning_ops.hpp +44 -0
  544. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/vertex_ranking_ops.hpp +43 -0
  545. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/detail/vertex_similarity_ops.hpp +44 -0
  546. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/exceptions.hpp +124 -0
  547. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/finalize_compute.hpp +65 -0
  548. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/finalize_train.hpp +65 -0
  549. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/common.hpp +149 -0
  550. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/common.hpp +36 -0
  551. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/container.hpp +263 -0
  552. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/csr_topology.hpp +140 -0
  553. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/directed_adjacency_vector_graph_builder.hpp +68 -0
  554. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/directed_adjacency_vector_graph_impl.hpp +172 -0
  555. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/directed_adjacency_vector_graph_topology_builder.hpp +48 -0
  556. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/service_functions_impl.hpp +71 -0
  557. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/undirected_adjacency_vector_graph_impl.hpp +144 -0
  558. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/detail/undirected_adjacency_vector_graph_topology_builder.hpp +49 -0
  559. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/directed_adjacency_vector_graph.hpp +176 -0
  560. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/service_functions.hpp +168 -0
  561. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph/undirected_adjacency_vector_graph.hpp +173 -0
  562. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/graph_matching.hpp +33 -0
  563. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/infer.hpp +64 -0
  564. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/common.hpp +127 -0
  565. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/common.hpp +40 -0
  566. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/read_graph_kernel.hpp +39 -0
  567. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/read_graph_kernel_impl.hpp +660 -0
  568. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/read_graph_service.hpp +40 -0
  569. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/read_ops.hpp +146 -0
  570. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/detail/select_kernel.hpp +51 -0
  571. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/read.hpp +31 -0
  572. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv/read_types.hpp +163 -0
  573. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/io/csv.hpp +19 -0
  574. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/partial_compute.hpp +43 -0
  575. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/partial_train.hpp +65 -0
  576. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/read.hpp +42 -0
  577. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/rng.hpp +50 -0
  578. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/ccl/communicator.hpp +80 -0
  579. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/common.hpp +55 -0
  580. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/communicator.hpp +571 -0
  581. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/detail/communicator_utils.hpp +218 -0
  582. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/exceptions.hpp +55 -0
  583. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/spmd/mpi/communicator.hpp +55 -0
  584. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/column_accessor.hpp +199 -0
  585. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/common.hpp +174 -0
  586. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/csr.hpp +424 -0
  587. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/csr_accessor.hpp +232 -0
  588. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/access_iface_compat.hpp +99 -0
  589. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/columns_access_iface.hpp +156 -0
  590. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/csr_access_iface.hpp +115 -0
  591. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/csr_utils.hpp +66 -0
  592. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/homogen_utils.hpp +40 -0
  593. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/metadata_utils.hpp +149 -0
  594. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/rows_access_iface.hpp +146 -0
  595. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/table_builder.hpp +308 -0
  596. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/table_iface.hpp +349 -0
  597. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/table_kinds.hpp +34 -0
  598. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/detail/table_utils.hpp +116 -0
  599. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/heterogen.hpp +112 -0
  600. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/homogen.hpp +281 -0
  601. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/table/row_accessor.hpp +174 -0
  602. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/train.hpp +64 -0
  603. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/traverse.hpp +33 -0
  604. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/util/common.hpp +48 -0
  605. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/util/detail/type_traits.hpp +52 -0
  606. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/util/result_option_id.hpp +96 -0
  607. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/vertex_partitioning.hpp +32 -0
  608. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/vertex_ranking.hpp +33 -0
  609. dal_include-2026.3.0.data/data/Library/include/oneapi/dal/vertex_similarity.hpp +33 -0
  610. dal_include-2026.3.0.data/data/Library/include/oneapi/dal.hpp +72 -0
  611. dal_include-2026.3.0.data/data/share/doc/dal/licensing/third-party-programs.txt +359 -0
  612. dal_include-2026.3.0.dist-info/LICENSE.txt +25 -0
  613. dal_include-2026.3.0.dist-info/METADATA +23 -0
  614. dal_include-2026.3.0.dist-info/RECORD +616 -0
  615. dal_include-2026.3.0.dist-info/WHEEL +6 -0
  616. dal_include-2026.3.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,1076 @@
1
+ /* file: csr_numeric_table.h */
2
+ /*******************************************************************************
3
+ * Copyright 2014 Intel Corporation
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ *******************************************************************************/
17
+
18
+ /*
19
+ //++
20
+ // Implementation of a compressed sparse row (CSR) numeric table.
21
+ //--
22
+ */
23
+
24
+ #ifndef __CSR_NUMERIC_TABLE_H__
25
+ #define __CSR_NUMERIC_TABLE_H__
26
+
27
+ #include "services/base.h"
28
+
29
+ #include "data_management/data/numeric_table.h"
30
+ #include "data_management/data/factory.h" // goes after numeric_table.h to avoid circular dependency
31
+ #include "data_management/data/internal/conversion.h"
32
+
33
+ namespace daal
34
+ {
35
+ namespace data_management
36
+ {
37
+ namespace interface1
38
+ {
39
+ /**
40
+ * @ingroup numeric_tables
41
+ * @{
42
+ */
43
+ /**
44
+ * <a name="DAAL-CLASS-DATA_MANAGEMENT__CSRBLOCKDESCRIPTOR"></a>
45
+ * \brief %Base class that manages buffer memory for read/write operations required by CSR numeric tables.
46
+ */
47
+ template <typename DataType = DAAL_DATA_TYPE>
48
+ class DAAL_EXPORT CSRBlockDescriptor
49
+ {
50
+ public:
51
+ /** \private */
52
+ CSRBlockDescriptor();
53
+
54
+ /**
55
+ * Gets a pointer to the buffer
56
+ * \return Pointer to the block
57
+ */
58
+ inline DataType * getBlockValuesPtr() const
59
+ {
60
+ if (_rawPtr)
61
+ {
62
+ return (DataType *)_rawPtr;
63
+ }
64
+ return _values_ptr.get();
65
+ }
66
+
67
+ inline size_t * getBlockColumnIndicesPtr() const { return _cols_ptr.get(); }
68
+
69
+ inline size_t * getBlockRowIndicesPtr() const { return _rows_ptr.get(); }
70
+
71
+ /**
72
+ * Gets a pointer to the buffer
73
+ * \return Pointer to the block
74
+ */
75
+ inline services::SharedPtr<DataType> getBlockValuesSharedPtr() const
76
+ {
77
+ if (_rawPtr)
78
+ {
79
+ return services::SharedPtr<DataType>(services::reinterpretPointerCast<DataType, byte>(*_pPtr), (DataType *)_rawPtr);
80
+ }
81
+ else
82
+ {
83
+ return _values_ptr;
84
+ }
85
+ }
86
+
87
+ inline services::SharedPtr<size_t> getBlockColumnIndicesSharedPtr() const { return _cols_ptr; }
88
+
89
+ inline services::SharedPtr<size_t> getBlockRowIndicesSharedPtr() const { return _rows_ptr; }
90
+
91
+ /**
92
+ * Returns the number of columns in the block
93
+ * \return Number of columns
94
+ */
95
+ inline size_t getNumberOfColumns() const { return _ncols; }
96
+
97
+ /**
98
+ * Returns the number of rows in the block
99
+ * \return Number of rows
100
+ */
101
+ inline size_t getNumberOfRows() const { return _nrows; }
102
+
103
+ /**
104
+ * Returns number of elements in values array.
105
+ * \return Number of elements in values array.
106
+ */
107
+ inline size_t getDataSize() const
108
+ {
109
+ if (_nrows > 0)
110
+ {
111
+ if (_rows_ptr)
112
+ {
113
+ return _rows_ptr.get()[_nrows] - _rows_ptr.get()[0];
114
+ }
115
+ }
116
+ return 0;
117
+ }
118
+
119
+ public:
120
+ /**
121
+ * \param[in] ptr Pointer to the buffer
122
+ * \param[in] nValues Number of values
123
+ */
124
+ inline void setValuesPtr(DataType * ptr, size_t nValues)
125
+ {
126
+ _values_ptr = services::SharedPtr<DataType>(ptr, services::EmptyDeleter());
127
+ _nvalues = nValues;
128
+ }
129
+
130
+ /**
131
+ * \param[in] ptr Pointer to the buffer
132
+ * \param[in] nValues Number of values
133
+ */
134
+ inline void setColumnIndicesPtr(size_t * ptr, size_t nValues)
135
+ {
136
+ _cols_ptr = services::SharedPtr<size_t>(ptr, services::EmptyDeleter());
137
+ _nvalues = nValues;
138
+ }
139
+
140
+ /**
141
+ * \param[in] ptr Pointer to the buffer
142
+ * \param[in] nRows Number of rows
143
+ */
144
+ inline void setRowIndicesPtr(size_t * ptr, size_t nRows)
145
+ {
146
+ _rows_ptr = services::SharedPtr<size_t>(ptr, services::EmptyDeleter());
147
+ _nrows = nRows;
148
+ }
149
+
150
+ /**
151
+ * \param[in] ptr Pointer to the buffer
152
+ * \param[in] nValues Number of values
153
+ */
154
+ inline void setValuesPtr(services::SharedPtr<DataType> ptr, size_t nValues)
155
+ {
156
+ _values_ptr = ptr;
157
+ _nvalues = nValues;
158
+ }
159
+
160
+ /**
161
+ * \param[in] pPtr Pointer to the buffer
162
+ * \param[in] rawPtr Pointer to the buffer
163
+ * \param[in] nValues Number of values
164
+ * \DAAL_DEPRECATED
165
+ */
166
+ inline void setValuesPtr(services::SharedPtr<byte> * pPtr, byte * rawPtr, size_t nValues)
167
+ {
168
+ _pPtr = pPtr;
169
+ _rawPtr = rawPtr;
170
+ _nvalues = nValues;
171
+ }
172
+
173
+ /**
174
+ * \param[in] ptr Pointer to the buffer
175
+ * \param[in] nValues Number of values
176
+ */
177
+ inline void setColumnIndicesPtr(services::SharedPtr<size_t> ptr, size_t nValues)
178
+ {
179
+ _cols_ptr = ptr;
180
+ _nvalues = nValues;
181
+ }
182
+
183
+ /**
184
+ * \param[in] ptr Pointer to the buffer
185
+ * \param[in] nRows Number of rows
186
+ */
187
+ inline void setRowIndicesPtr(services::SharedPtr<size_t> ptr, size_t nRows)
188
+ {
189
+ _rows_ptr = ptr;
190
+ _nrows = nRows;
191
+ }
192
+
193
+ /**
194
+ * Reset internal values and pointers to zero values
195
+ */
196
+ inline void reset()
197
+ {
198
+ _ncols = 0;
199
+ _rowsOffset = 0;
200
+ _rwFlag = 0;
201
+ _pPtr = NULL;
202
+ _rawPtr = NULL;
203
+ }
204
+
205
+ /**
206
+ * \param[in] nValues Number of values
207
+ */
208
+ inline bool resizeValuesBuffer(size_t nValues)
209
+ {
210
+ size_t newSize = nValues * sizeof(DataType);
211
+ if (newSize > _values_capacity)
212
+ {
213
+ freeValuesBuffer();
214
+
215
+ _valuesInternal = services::SharedPtr<DataType>((DataType *)daal::services::daal_malloc(newSize), services::ServiceDeleter());
216
+ if (_valuesInternal)
217
+ {
218
+ _values_capacity = newSize;
219
+ }
220
+ else
221
+ {
222
+ return false;
223
+ }
224
+ }
225
+
226
+ _values_ptr = _valuesInternal;
227
+
228
+ return true;
229
+ }
230
+
231
+ /**
232
+ * \param[in] nRows Number of rows
233
+ */
234
+ inline bool resizeRowsBuffer(size_t nRows)
235
+ {
236
+ _nrows = nRows;
237
+ size_t newSize = (nRows + 1) * sizeof(size_t);
238
+ if (newSize > _rows_capacity)
239
+ {
240
+ freeRowsBuffer();
241
+
242
+ _rowsInternal = services::SharedPtr<size_t>((size_t *)daal::services::daal_malloc(newSize), services::ServiceDeleter());
243
+ if (_rowsInternal)
244
+ {
245
+ _rows_capacity = newSize;
246
+ }
247
+ else
248
+ {
249
+ return false;
250
+ }
251
+ }
252
+
253
+ _rows_ptr = _rowsInternal;
254
+
255
+ return true;
256
+ }
257
+
258
+ inline void setDetails(size_t nColumns, size_t rowIdx, int rwFlag)
259
+ {
260
+ _ncols = nColumns;
261
+ _rowsOffset = rowIdx;
262
+ _rwFlag = rwFlag;
263
+ }
264
+
265
+ inline size_t getRowsOffset() const { return _rowsOffset; }
266
+ inline size_t getRWFlag() const { return _rwFlag; }
267
+
268
+ protected:
269
+ /**
270
+ * Frees the values buffer
271
+ */
272
+ void freeValuesBuffer()
273
+ {
274
+ _valuesInternal = services::SharedPtr<DataType>();
275
+ _values_capacity = 0;
276
+ }
277
+
278
+ /**
279
+ * Frees the rows buffer
280
+ */
281
+ void freeRowsBuffer()
282
+ {
283
+ _rowsInternal = services::SharedPtr<size_t>();
284
+ _rows_capacity = 0;
285
+ }
286
+
287
+ private:
288
+ services::SharedPtr<DataType> _values_ptr;
289
+ services::SharedPtr<size_t> _cols_ptr;
290
+ services::SharedPtr<size_t> _rows_ptr;
291
+ size_t _nrows;
292
+ size_t _ncols;
293
+ size_t _nvalues;
294
+
295
+ size_t _rowsOffset;
296
+ int _rwFlag;
297
+
298
+ services::SharedPtr<DataType> _valuesInternal; /*<! Pointer to the values buffer. */
299
+ size_t _values_capacity; /*<! Buffer size in bytes. */
300
+
301
+ services::SharedPtr<size_t> _rowsInternal; /*<! Pointer to the row indices buffer. */
302
+ size_t _rows_capacity;
303
+
304
+ services::SharedPtr<byte> * _pPtr;
305
+ byte * _rawPtr;
306
+ };
307
+
308
+ /**
309
+ * <a name="DAAL-CLASS-DATA_MANAGEMENT__CSRNUMERICTABLEIFACE"></a>
310
+ * \brief Abstract class that defines the interface of CSR numeric tables
311
+ */
312
+ class CSRNumericTableIface
313
+ {
314
+ public:
315
+ /**
316
+ * <a name="DAAL-ENUM-DATA_MANAGEMENT__CSRINDEXING"></a>
317
+ * \brief Enumeration to specify the indexing scheme for access to data in the CSR layout
318
+ */
319
+ enum CSRIndexing
320
+ {
321
+ zeroBased = 0, /*!< 0-based indexing */
322
+ oneBased = 1 /*!< 1-based indexing */
323
+ };
324
+
325
+ public:
326
+ virtual ~CSRNumericTableIface() {}
327
+
328
+ /**
329
+ * Returns number of elements in values array.
330
+ *
331
+ * \return Number of elements in values array.
332
+ */
333
+ virtual size_t getDataSize() = 0;
334
+ /**
335
+ * Gets a block of feature vectors in the CSR layout.
336
+ *
337
+ * \param[in] vector_idx Index of the first row to include into the block.
338
+ * \param[in] vector_num Number of rows in the block.
339
+ * \param[in] rwflag Flag specifying read/write access to the block of feature vectors.
340
+ * \param[out] block The block of feature values.
341
+ *
342
+ * \return Actual number of feature vectors returned by the method.
343
+ */
344
+ virtual services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<double> & block) = 0;
345
+
346
+ /**
347
+ * Gets a block of feature vectors in the CSR layout.
348
+ *
349
+ * \param[in] vector_idx Index of the first row to include into the block.
350
+ * \param[in] vector_num Number of rows in the block.
351
+ * \param[in] rwflag Flag specifying read/write access to the block of feature vectors.
352
+ * \param[out] block The block of feature values.
353
+ *
354
+ * \return Actual number of feature vectors returned by the method.
355
+ */
356
+ virtual services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<float> & block) = 0;
357
+
358
+ /**
359
+ * Gets a block of feature vectors in the CSR layout.
360
+ *
361
+ * \param[in] vector_idx Index of the first row to include into the block.
362
+ * \param[in] vector_num Number of rows in the block.
363
+ * \param[in] rwflag Flag specifying read/write access to the block of feature vectors.
364
+ * \param[out] block The block of feature values.
365
+ *
366
+ * \return Actual number of feature vectors returned by the method.
367
+ */
368
+ virtual services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<int> & block) = 0;
369
+
370
+ /**
371
+ * Releases a block of feature vectors in the CSR layout.
372
+ * \param[in] block The block of feature values.
373
+ */
374
+ virtual services::Status releaseSparseBlock(CSRBlockDescriptor<double> & block) = 0;
375
+
376
+ /**
377
+ * Releases a block of feature vectors in the CSR layout.
378
+ * \param[in] block The block of feature values.
379
+ */
380
+ virtual services::Status releaseSparseBlock(CSRBlockDescriptor<float> & block) = 0;
381
+
382
+ /**
383
+ * Releases a block of feature vectors in the CSR layout.
384
+ * \param[in] block The block of feature values.
385
+ */
386
+ virtual services::Status releaseSparseBlock(CSRBlockDescriptor<int> & block) = 0;
387
+ };
388
+
389
+ /**
390
+ * <a name="DAAL-CLASS-DATA_MANAGEMENT__CSRNUMERICTABLE"></a>
391
+ * \brief Class that provides methods to access data stored in the CSR layout.
392
+ */
393
+ class DAAL_EXPORT CSRNumericTable : public NumericTable, public CSRNumericTableIface
394
+ {
395
+ public:
396
+ DECLARE_SERIALIZABLE_TAG()
397
+ DECLARE_SERIALIZABLE_IMPL()
398
+
399
+ DAAL_CAST_OPERATOR(CSRNumericTable)
400
+
401
+ friend Creator<CSRNumericTable>;
402
+
403
+ /**
404
+ * Constructs CSR numeric table with user-allocated memory
405
+ * \tparam DataType Type of values in the numeric table
406
+ * \param[in] ptr Array of values in the CSR layout. Let ptr_size denote the size of an array ptr
407
+ * \param[in] colIndices Array of column indices in the CSR layout. Values of indices are determined by the index base
408
+ * \param[in] rowOffsets Array of row indices in the CSR layout. Size of the array is nrow+1. The first element is 0/1
409
+ * in zero-/one-based indexing. The last element is ptr_size+0/1 in zero-/one-based indexing
410
+ * \param[in] nColumns Number of columns in the corresponding dense table
411
+ * \param[in] nRows Number of rows in the corresponding dense table
412
+ * \param[in] indexing Indexing scheme used to access data in the CSR layout
413
+ * \param[out] stat Status of the numeric table construction
414
+ * \return CSR numeric table with user-allocated memory
415
+ * \note Present version of oneAPI Data Analytics Library supports 1-based indexing only
416
+ */
417
+ template <typename DataType>
418
+ static services::SharedPtr<CSRNumericTable> create(DataType * const ptr, size_t * colIndices = 0, size_t * rowOffsets = 0, size_t nColumns = 0,
419
+ size_t nRows = 0, CSRIndexing indexing = oneBased, services::Status * stat = NULL)
420
+ {
421
+ return create<DataType>(services::SharedPtr<DataType>(ptr, services::EmptyDeleter()),
422
+ services::SharedPtr<size_t>(colIndices, services::EmptyDeleter()),
423
+ services::SharedPtr<size_t>(rowOffsets, services::EmptyDeleter()), nColumns, nRows, indexing, stat);
424
+ }
425
+
426
+ /**
427
+ * Constructs CSR numeric table with user-allocated memory
428
+ * \tparam DataType Type of values in the Numeric Table
429
+ * \param[in] ptr Array of values in the CSR layout. Let ptr_size denote the size of an array ptr
430
+ * \param[in] colIndices Array of column indices in the CSR layout. Values of indices are determined by the index base
431
+ * \param[in] rowOffsets Array of row indices in the CSR layout. Size of the array is nrow+1. The first element is 0/1
432
+ * in zero-/one-based indexing. The last element is ptr_size+0/1 in zero-/one-based indexing
433
+ * \param[in] nColumns Number of columns in the corresponding dense table
434
+ * \param[in] nRows Number of rows in the corresponding dense table
435
+ * \param[in] indexing Indexing scheme used to access data in the CSR layout
436
+ * \param[out] stat Status of the numeric table construction
437
+ * \return CSR numeric table with user-allocated memory
438
+ * \note Present version of oneAPI Data Analytics Library supports 1-based indexing only
439
+ */
440
+ template <typename DataType>
441
+ static services::SharedPtr<CSRNumericTable> create(const services::SharedPtr<DataType> & ptr, const services::SharedPtr<size_t> & colIndices,
442
+ const services::SharedPtr<size_t> & rowOffsets, size_t nColumns, size_t nRows,
443
+ CSRIndexing indexing = oneBased, services::Status * stat = NULL)
444
+ {
445
+ DAAL_DEFAULT_CREATE_IMPL_EX(CSRNumericTable, ptr, colIndices, rowOffsets, nColumns, nRows, indexing);
446
+ }
447
+
448
+ /**
449
+ * The call below is qualified on purpose. During the execution of this destructor the dynamic
450
+ * type of the object is already CSRNumericTable ([class.cdtor]/4), so an unqualified call
451
+ * would resolve to the very same function; spelling it out only keeps the destructor free of
452
+ * virtual calls, which GCC 13 mis-analyzes under -O3 -flto. See setArraysImpl() for details.
453
+ */
454
+ virtual ~CSRNumericTable() { CSRNumericTable::freeDataMemoryImpl(); }
455
+
456
+ services::Status resize(size_t nrows) override { return setNumberOfRowsImpl(nrows); }
457
+
458
+ /**
459
+ * Returns pointers to a data set stored in the CSR layout
460
+ * \param[out] ptr Array of values in the CSR layout
461
+ * \param[out] colIndices Array of column indices in the CSR layout
462
+ * \param[out] rowOffsets Array of row indices in the CSR layout
463
+ */
464
+ template <typename DataType>
465
+ services::Status getArrays(DataType ** ptr, size_t ** colIndices, size_t ** rowOffsets) const
466
+ {
467
+ if (ptr)
468
+ {
469
+ *ptr = (DataType *)_ptr.get();
470
+ }
471
+ if (colIndices)
472
+ {
473
+ *colIndices = _colIndices.get();
474
+ }
475
+ if (rowOffsets)
476
+ {
477
+ *rowOffsets = _rowOffsets.get();
478
+ }
479
+ return services::Status();
480
+ }
481
+
482
+ /**
483
+ * Returns pointers to a data set stored in the CSR layout
484
+ * \param[out] ptr Array of values in the CSR layout
485
+ * \param[out] colIndices Array of column indices in the CSR layout
486
+ * \param[out] rowOffsets Array of row indices in the CSR layout
487
+ */
488
+ template <typename DataType>
489
+ services::Status getArrays(services::SharedPtr<DataType> & ptr, services::SharedPtr<size_t> & colIndices,
490
+ services::SharedPtr<size_t> & rowOffsets) const
491
+ {
492
+ if (ptr)
493
+ {
494
+ *ptr = _ptr;
495
+ }
496
+ if (colIndices)
497
+ {
498
+ *colIndices = _colIndices;
499
+ }
500
+ if (rowOffsets)
501
+ {
502
+ *rowOffsets = _rowOffsets;
503
+ }
504
+ return services::Status();
505
+ }
506
+
507
+ /**
508
+ * Sets a pointer to a CSR data set
509
+ * \param[in] ptr Array of values in the CSR layout
510
+ * \param[in] colIndices Array of column indices in the CSR layout
511
+ * \param[in] rowOffsets Array of row indices in the CSR layout
512
+ * \param[in] indexing The indexing scheme for access to data in the CSR layout
513
+ */
514
+ template <typename DataType>
515
+ services::Status setArrays(DataType * const ptr, size_t * colIndices, size_t * rowOffsets, CSRIndexing indexing = oneBased)
516
+ {
517
+ freeDataMemoryImpl();
518
+ return setArraysImpl<DataType>(ptr, colIndices, rowOffsets, indexing);
519
+ }
520
+
521
+ /**
522
+ * Sets a pointer to a CSR data set
523
+ * \param[in] ptr Array of values in the CSR layout
524
+ * \param[in] colIndices Array of column indices in the CSR layout
525
+ * \param[in] rowOffsets Array of row indices in the CSR layout
526
+ * \param[in] indexing The indexing scheme for access to data in the CSR layout
527
+ */
528
+ template <typename DataType>
529
+ services::Status setArrays(const services::SharedPtr<DataType> & ptr, const services::SharedPtr<size_t> & colIndices,
530
+ const services::SharedPtr<size_t> & rowOffsets, CSRIndexing indexing = oneBased)
531
+ {
532
+ freeDataMemoryImpl();
533
+ return setArraysImpl<DataType>(ptr, colIndices, rowOffsets, indexing);
534
+ }
535
+
536
+ services::Status getBlockOfRows(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, BlockDescriptor<double> & block) override
537
+ {
538
+ return getTBlock<double>(vector_idx, vector_num, rwflag, block);
539
+ }
540
+ services::Status getBlockOfRows(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, BlockDescriptor<float> & block) override
541
+ {
542
+ return getTBlock<float>(vector_idx, vector_num, rwflag, block);
543
+ }
544
+ services::Status getBlockOfRows(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, BlockDescriptor<int> & block) override
545
+ {
546
+ return getTBlock<int>(vector_idx, vector_num, rwflag, block);
547
+ }
548
+
549
+ services::Status releaseBlockOfRows(BlockDescriptor<double> & block) override { return releaseTBlock<double>(block); }
550
+ services::Status releaseBlockOfRows(BlockDescriptor<float> & block) override { return releaseTBlock<float>(block); }
551
+ services::Status releaseBlockOfRows(BlockDescriptor<int> & block) override { return releaseTBlock<int>(block); }
552
+
553
+ services::Status getBlockOfColumnValues(size_t feature_idx, size_t vector_idx, size_t value_num, ReadWriteMode rwflag,
554
+ BlockDescriptor<double> & block) override
555
+ {
556
+ return getTFeature<double>(feature_idx, vector_idx, value_num, rwflag, block);
557
+ }
558
+ services::Status getBlockOfColumnValues(size_t feature_idx, size_t vector_idx, size_t value_num, ReadWriteMode rwflag,
559
+ BlockDescriptor<float> & block) override
560
+ {
561
+ return getTFeature<float>(feature_idx, vector_idx, value_num, rwflag, block);
562
+ }
563
+ services::Status getBlockOfColumnValues(size_t feature_idx, size_t vector_idx, size_t value_num, ReadWriteMode rwflag,
564
+ BlockDescriptor<int> & block) override
565
+ {
566
+ return getTFeature<int>(feature_idx, vector_idx, value_num, rwflag, block);
567
+ }
568
+
569
+ services::Status releaseBlockOfColumnValues(BlockDescriptor<double> & block) override { return releaseTFeature<double>(block); }
570
+ services::Status releaseBlockOfColumnValues(BlockDescriptor<float> & block) override { return releaseTFeature<float>(block); }
571
+ services::Status releaseBlockOfColumnValues(BlockDescriptor<int> & block) override { return releaseTFeature<int>(block); }
572
+
573
+ services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<double> & block) override
574
+ {
575
+ return getSparseTBlock<double>(vector_idx, vector_num, rwflag, block);
576
+ }
577
+ services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<float> & block) override
578
+ {
579
+ return getSparseTBlock<float>(vector_idx, vector_num, rwflag, block);
580
+ }
581
+ services::Status getSparseBlock(size_t vector_idx, size_t vector_num, ReadWriteMode rwflag, CSRBlockDescriptor<int> & block) override
582
+ {
583
+ return getSparseTBlock<int>(vector_idx, vector_num, rwflag, block);
584
+ }
585
+
586
+ services::Status releaseSparseBlock(CSRBlockDescriptor<double> & block) override { return releaseSparseTBlock<double>(block); }
587
+ services::Status releaseSparseBlock(CSRBlockDescriptor<float> & block) override { return releaseSparseTBlock<float>(block); }
588
+ services::Status releaseSparseBlock(CSRBlockDescriptor<int> & block) override { return releaseSparseTBlock<int>(block); }
589
+
590
+ /**
591
+ * Allocates memory for a data set
592
+ * \param[in] dataSize Number of non-zero values
593
+ * \param[in] type Memory type
594
+ */
595
+ using daal::data_management::interface1::NumericTableIface::allocateDataMemory;
596
+
597
+ services::Status allocateDataMemory(size_t dataSize, daal::MemType /*type*/ = daal::dram)
598
+ {
599
+ freeDataMemoryImpl();
600
+
601
+ size_t nrow = getNumberOfRows();
602
+
603
+ if (nrow == 0) return services::Status(services::ErrorIncorrectNumberOfObservations);
604
+
605
+ const NumericTableFeature & f = (*_ddict)[0];
606
+
607
+ _ptr = services::SharedPtr<byte>((byte *)daal::services::daal_malloc(dataSize * f.typeSize), services::ServiceDeleter());
608
+ _colIndices = services::SharedPtr<size_t>((size_t *)daal::services::daal_malloc(dataSize * sizeof(size_t)), services::ServiceDeleter());
609
+ _rowOffsets = services::SharedPtr<size_t>((size_t *)daal::services::daal_malloc((nrow + 1) * sizeof(size_t)), services::ServiceDeleter());
610
+
611
+ _memStatus = internallyAllocated;
612
+
613
+ if (!_ptr || !_colIndices || !_rowOffsets)
614
+ {
615
+ freeDataMemoryImpl();
616
+ return services::Status(services::ErrorMemoryAllocationFailed);
617
+ }
618
+
619
+ _rowOffsets.get()[0] = ((_indexing == oneBased) ? 1 : 0);
620
+ return services::Status();
621
+ }
622
+
623
+ /**
624
+ * Returns the indexing scheme for access to data in the CSR layout
625
+ * \return CSR layout indexing
626
+ */
627
+ CSRIndexing getCSRIndexing() const { return _indexing; }
628
+
629
+ /**
630
+ * \copydoc NumericTableIface::check
631
+ */
632
+ services::Status check(const char * description, bool checkDataAllocation = true) const override
633
+ {
634
+ services::Status s;
635
+ DAAL_CHECK_STATUS(s, data_management::NumericTable::check(description, checkDataAllocation));
636
+
637
+ if (_indexing != oneBased)
638
+ {
639
+ return services::Status(services::Error::create(services::ErrorUnsupportedCSRIndexing, services::ArgumentName, description));
640
+ }
641
+
642
+ return services::Status();
643
+ }
644
+
645
+ protected:
646
+ NumericTableFeature _defaultFeature;
647
+ CSRIndexing _indexing;
648
+
649
+ services::SharedPtr<byte> _ptr;
650
+ services::SharedPtr<size_t> _colIndices;
651
+ services::SharedPtr<size_t> _rowOffsets;
652
+
653
+ /**
654
+ * Stores the pointers to a CSR data set without releasing the previously stored ones.
655
+ * Non-virtual and safe to call from a constructor body, unlike setArrays(), which starts
656
+ * with a virtual freeDataMemoryImpl() call. The constructors below have nothing to release
657
+ * (all three arrays are default-constructed and _memStatus is notAllocated at that point),
658
+ * so they use this method directly.
659
+ *
660
+ * This also keeps the constructors free of virtual calls, which GCC 13 mis-analyzes under
661
+ * -O3 -flto: walking back from the call it takes the dynamic type from the inlined
662
+ * NumericTable base constructor, concludes that a CSRNumericTable vtable slot has no
663
+ * possible target, and replaces the call with __builtin_unreachable, deleting the rest of
664
+ * the construction.
665
+ */
666
+ template <typename DataType>
667
+ services::Status setArraysImpl(DataType * const ptr, size_t * colIndices, size_t * rowOffsets, CSRIndexing indexing)
668
+ {
669
+ //if( ptr == 0 || colIndices == 0 || rowOffsets == 0 ) return services::Status(services::ErrorEmptyCSRNumericTable);
670
+
671
+ _ptr = services::SharedPtr<byte>((byte *)ptr, services::EmptyDeleter());
672
+ _colIndices = services::SharedPtr<size_t>(colIndices, services::EmptyDeleter());
673
+ _rowOffsets = services::SharedPtr<size_t>(rowOffsets, services::EmptyDeleter());
674
+ _indexing = indexing;
675
+
676
+ if (ptr != 0 && colIndices != 0 && rowOffsets != 0)
677
+ {
678
+ _memStatus = userAllocated;
679
+ }
680
+ return services::Status();
681
+ }
682
+
683
+ /**
684
+ * Stores the pointers to a CSR data set without releasing the previously stored ones.
685
+ * See the overload above.
686
+ */
687
+ template <typename DataType>
688
+ services::Status setArraysImpl(const services::SharedPtr<DataType> & ptr, const services::SharedPtr<size_t> & colIndices,
689
+ const services::SharedPtr<size_t> & rowOffsets, CSRIndexing indexing)
690
+ {
691
+ //if( ptr == 0 || colIndices == 0 || rowOffsets == 0 ) return services::Status(services::ErrorEmptyCSRNumericTable);
692
+
693
+ _ptr = services::reinterpretPointerCast<byte, DataType>(ptr);
694
+ _colIndices = colIndices;
695
+ _rowOffsets = rowOffsets;
696
+ _indexing = indexing;
697
+
698
+ if (ptr && colIndices && rowOffsets)
699
+ {
700
+ _memStatus = userAllocated;
701
+ }
702
+ return services::Status();
703
+ }
704
+
705
+ template <typename DataType>
706
+ CSRNumericTable(const services::SharedPtr<DataType> & ptr, const services::SharedPtr<size_t> & colIndices,
707
+ const services::SharedPtr<size_t> & rowOffsets, size_t nColumns, size_t nRows, CSRIndexing indexing, services::Status & st)
708
+ : NumericTable(nColumns, nRows, DictionaryIface::equal, st)
709
+ {
710
+ _layout = csrArray;
711
+ st |= setArraysImpl<DataType>(ptr, colIndices, rowOffsets, indexing);
712
+
713
+ _defaultFeature.setType<DataType>();
714
+ st |= _ddict->setAllFeatures(_defaultFeature);
715
+ }
716
+
717
+ /**
718
+ * Constructor for a Numeric Table with user-allocated memory
719
+ * \tparam DataType Type of values in the Numeric Table
720
+ * \param[in] ptr Array of values in the CSR layout. Let ptr_size denote the size of an array ptr
721
+ * \param[in] colIndices Array of column indices in the CSR layout. Values of indices are determined by the index base
722
+ * \param[in] rowOffsets Array of row indices in the CSR layout. Size of the array is nrow+1. The first element is 0/1
723
+ * in zero-/one-based indexing. The last element is ptr_size+0/1 in zero-/one-based indexing
724
+ * \param[in] nColumns Number of columns in the corresponding dense table
725
+ * \param[in] nRows Number of rows in the corresponding dense table
726
+ * \param[in] indexing Indexing scheme used to access data in the CSR layout
727
+ * \note Present version of oneAPI Data Analytics Library supports 1-based indexing only
728
+ */
729
+ template <typename DataType>
730
+ CSRNumericTable(const services::SharedPtr<DataType> & ptr, const services::SharedPtr<size_t> & colIndices,
731
+ const services::SharedPtr<size_t> & rowOffsets, size_t nColumns, size_t nRows, CSRIndexing indexing = oneBased)
732
+ : NumericTable(nColumns, nRows, DictionaryIface::equal)
733
+ {
734
+ _layout = csrArray;
735
+ this->_status |= setArraysImpl<DataType>(ptr, colIndices, rowOffsets, indexing);
736
+
737
+ _defaultFeature.setType<DataType>();
738
+ this->_status |= _ddict->setAllFeatures(_defaultFeature);
739
+ }
740
+
741
+ /**
742
+ * Constructor for an empty CSR Numeric Table
743
+ */
744
+ CSRNumericTable() : NumericTable(0, 0, DictionaryIface::equal)
745
+ {
746
+ _layout = csrArray;
747
+ this->_status |= setArraysImpl<double>(0, 0, 0, oneBased); //data type doesn't matter
748
+ }
749
+
750
+ /**
751
+ * Constructor for a Numeric Table with user-allocated memory
752
+ * \tparam DataType Type of values in the Numeric Table
753
+ * \param[in] ptr Array of values in the CSR layout. Let ptr_size denote the size of an array ptr
754
+ * \param[in] colIndices Array of column indices in the CSR layout. Values of indices are determined by the index base
755
+ * \param[in] rowOffsets Array of row indices in the CSR layout. Size of the array is nrow+1. The first element is 0/1
756
+ * in zero-/one-based indexing. The last element is ptr_size+0/1 in zero-/one-based indexing
757
+ * \param[in] nColumns Number of columns in the corresponding dense table
758
+ * \param[in] nRows Number of rows in the corresponding dense table
759
+ * \param[in] indexing Indexing scheme used to access data in the CSR layout
760
+ * \note Present version of oneAPI Data Analytics Library supports 1-based indexing only
761
+ */
762
+ template <typename DataType>
763
+ CSRNumericTable(DataType * const ptr, size_t * colIndices = 0, size_t * rowOffsets = 0, size_t nColumns = 0, size_t nRows = 0,
764
+ CSRIndexing indexing = oneBased)
765
+ : NumericTable(nColumns, nRows, DictionaryIface::equal)
766
+ {
767
+ _layout = csrArray;
768
+ this->_status |= setArraysImpl<DataType>(ptr, colIndices, rowOffsets, indexing);
769
+
770
+ _defaultFeature.setType<DataType>();
771
+ this->_status |= _ddict->setAllFeatures(_defaultFeature);
772
+ }
773
+
774
+ services::Status allocateDataMemoryImpl(daal::MemType /*type*/ = daal::dram) override
775
+ {
776
+ return services::Status(services::ErrorMethodNotSupported);
777
+ }
778
+
779
+ void freeDataMemoryImpl() override
780
+ {
781
+ _ptr = services::SharedPtr<byte>();
782
+ _colIndices = services::SharedPtr<size_t>();
783
+ _rowOffsets = services::SharedPtr<size_t>();
784
+
785
+ _memStatus = notAllocated;
786
+ }
787
+
788
+ /** \private */
789
+ template <typename Archive, bool onDeserialize>
790
+ services::Status serialImpl(Archive * arch)
791
+ {
792
+ NumericTable::serialImpl<Archive, onDeserialize>(arch);
793
+
794
+ size_t dataSize = 0;
795
+ if (!onDeserialize)
796
+ {
797
+ dataSize = getDataSize();
798
+ }
799
+ arch->set(dataSize);
800
+
801
+ if (onDeserialize)
802
+ {
803
+ allocateDataMemory(dataSize);
804
+ }
805
+
806
+ size_t nfeat = getNumberOfColumns();
807
+ size_t nobs = getNumberOfRows();
808
+
809
+ if (nfeat > 0)
810
+ {
811
+ NumericTableFeature & f = (*_ddict)[0];
812
+
813
+ arch->set((char *)_ptr.get(), dataSize * f.typeSize);
814
+ arch->set(_colIndices.get(), dataSize);
815
+ arch->set(_rowOffsets.get(), nobs + 1);
816
+ }
817
+
818
+ return services::Status();
819
+ }
820
+
821
+ public:
822
+ size_t getDataSize() override
823
+ {
824
+ size_t nobs = getNumberOfRows();
825
+ if (nobs > 0)
826
+ {
827
+ return _rowOffsets.get()[nobs] - _rowOffsets.get()[0];
828
+ }
829
+ else
830
+ {
831
+ return 0;
832
+ }
833
+ }
834
+
835
+ protected:
836
+ template <typename T>
837
+ services::Status getTBlock(size_t idx, size_t nrows, int rwFlag, BlockDescriptor<T> & block)
838
+ {
839
+ size_t ncols = getNumberOfColumns();
840
+ size_t nobs = getNumberOfRows();
841
+ block.setDetails(0, idx, rwFlag);
842
+ size_t * rowOffsets = _rowOffsets.get();
843
+
844
+ if (idx >= nobs)
845
+ {
846
+ block.resizeBuffer(ncols, 0);
847
+ return services::Status();
848
+ }
849
+
850
+ const NumericTableFeature & f = (*_ddict)[0];
851
+ const int indexType = f.indexType;
852
+
853
+ T * buffer = nullptr;
854
+ T * castingBuffer = nullptr;
855
+ T * location = (T *)(_ptr.get() + (rowOffsets[idx] - 1) * f.typeSize);
856
+
857
+ if (features::internal::getIndexNumType<T>() == indexType)
858
+ {
859
+ castingBuffer = location;
860
+
861
+ if (!block.resizeBuffer(ncols, nrows)) return services::Status(services::ErrorMemoryAllocationFailed);
862
+ buffer = block.getBlockPtr();
863
+ }
864
+ else
865
+ {
866
+ size_t sparseBlockSize = rowOffsets[idx + nrows] - rowOffsets[idx];
867
+
868
+ if (!block.resizeBuffer(ncols, nrows, sparseBlockSize * sizeof(T))) return services::Status(services::ErrorMemoryAllocationFailed);
869
+ buffer = block.getBlockPtr();
870
+
871
+ castingBuffer = (T *)block.getAdditionalBufferPtr();
872
+
873
+ if (data_management::features::DAAL_OTHER_T == indexType) return services::Status(services::ErrorDataTypeNotSupported);
874
+
875
+ internal::getVectorUpCast(indexType, internal::getConversionDataType<T>())(sparseBlockSize, location, castingBuffer);
876
+ }
877
+
878
+ T * bufRowCursor = castingBuffer;
879
+ size_t * indicesCursor = _colIndices.get() + rowOffsets[idx] - 1;
880
+
881
+ for (size_t i = 0; i < ncols * nrows; i++)
882
+ {
883
+ buffer[i] = (T)0;
884
+ }
885
+
886
+ for (size_t i = 0; i < nrows; i++)
887
+ {
888
+ size_t sparseRowSize = rowOffsets[idx + i + 1] - rowOffsets[idx + i];
889
+
890
+ for (size_t k = 0; k < sparseRowSize; k++)
891
+ {
892
+ buffer[i * ncols + indicesCursor[k] - 1] = bufRowCursor[k];
893
+ }
894
+
895
+ bufRowCursor += sparseRowSize;
896
+ indicesCursor += sparseRowSize;
897
+ }
898
+ return services::Status();
899
+ }
900
+
901
+ template <typename T>
902
+ services::Status releaseTBlock(BlockDescriptor<T> & block)
903
+ {
904
+ if (!(block.getRWFlag() & (int)writeOnly)) block.reset();
905
+ return services::Status();
906
+ }
907
+
908
+ template <typename T>
909
+ services::Status getTFeature(size_t feat_idx, size_t idx, size_t nrows, int rwFlag, BlockDescriptor<T> & block)
910
+ {
911
+ size_t nobs = getNumberOfRows();
912
+ block.setDetails(feat_idx, idx, rwFlag);
913
+ size_t * rowOffsets = _rowOffsets.get();
914
+
915
+ if (idx >= nobs)
916
+ {
917
+ block.resizeBuffer(1, 0);
918
+ return services::Status();
919
+ }
920
+
921
+ nrows = (idx + nrows < nobs) ? nrows : nobs - idx;
922
+
923
+ if (!block.resizeBuffer(1, nrows)) return services::Status(services::ErrorMemoryAllocationFailed);
924
+
925
+ const NumericTableFeature & f = (*_ddict)[0];
926
+ const int indexType = f.indexType;
927
+ if (data_management::features::DAAL_OTHER_T == indexType) return services::Status(services::ErrorDataTypeNotSupported);
928
+
929
+ char * rowCursor = (char *)_ptr.get() + (rowOffsets[idx] - 1) * f.typeSize;
930
+ size_t * indicesCursor = _colIndices.get() + (rowOffsets[idx] - 1);
931
+
932
+ T * bufferPtr = block.getBlockPtr();
933
+
934
+ for (size_t i = 0; i < nrows; i++)
935
+ {
936
+ bufferPtr[i] = (T)0;
937
+
938
+ size_t sparseRowSize = rowOffsets[idx + i + 1] - rowOffsets[idx + i];
939
+
940
+ for (size_t k = 0; k < sparseRowSize; k++)
941
+ {
942
+ if (indicesCursor[k] - 1 == feat_idx)
943
+ {
944
+ internal::getVectorUpCast(indexType, internal::getConversionDataType<T>())(1, rowCursor + k * f.typeSize, bufferPtr + i);
945
+ }
946
+ }
947
+
948
+ rowCursor += sparseRowSize * f.typeSize;
949
+ indicesCursor += sparseRowSize;
950
+ }
951
+ return services::Status();
952
+ }
953
+
954
+ template <typename T>
955
+ services::Status releaseTFeature(BlockDescriptor<T> & block)
956
+ {
957
+ if (block.getRWFlag() & (int)writeOnly) return services::Status();
958
+ block.reset();
959
+ return services::Status();
960
+ }
961
+
962
+ template <typename T>
963
+ services::Status getSparseTBlock(size_t idx, size_t nrows, int rwFlag, CSRBlockDescriptor<T> & block)
964
+ {
965
+ size_t ncols = getNumberOfColumns();
966
+ size_t nobs = getNumberOfRows();
967
+ block.setDetails(ncols, idx, rwFlag);
968
+ size_t * rowOffsets = _rowOffsets.get();
969
+
970
+ if (idx >= nobs)
971
+ {
972
+ block.resizeValuesBuffer(0);
973
+ return services::Status();
974
+ }
975
+
976
+ nrows = (idx + nrows < nobs) ? nrows : nobs - idx;
977
+
978
+ const NumericTableFeature & f = (*_ddict)[0];
979
+ const int indexType = f.indexType;
980
+
981
+ size_t nValues = rowOffsets[idx + nrows] - rowOffsets[idx];
982
+
983
+ if (features::internal::getIndexNumType<T>() == indexType)
984
+ {
985
+ block.setValuesPtr(&_ptr, _ptr.get() + (rowOffsets[idx] - 1) * f.typeSize, nValues);
986
+ }
987
+ else
988
+ {
989
+ if (!block.resizeValuesBuffer(nValues))
990
+ {
991
+ return services::Status();
992
+ }
993
+
994
+ if (data_management::features::DAAL_OTHER_T == indexType) return services::Status(services::ErrorDataTypeNotSupported);
995
+
996
+ services::SharedPtr<byte> location(_ptr, _ptr.get() + (rowOffsets[idx] - 1) * f.typeSize);
997
+ internal::getVectorUpCast(indexType, internal::getConversionDataType<T>())(nValues, location.get(), block.getBlockValuesPtr());
998
+ }
999
+
1000
+ services::SharedPtr<size_t> shiftedColumns(_colIndices, _colIndices.get() + (rowOffsets[idx] - 1));
1001
+ block.setColumnIndicesPtr(shiftedColumns, nValues);
1002
+
1003
+ if (idx == 0)
1004
+ {
1005
+ block.setRowIndicesPtr(_rowOffsets, nrows);
1006
+ }
1007
+ else
1008
+ {
1009
+ if (!block.resizeRowsBuffer(nrows))
1010
+ {
1011
+ return services::Status();
1012
+ }
1013
+
1014
+ size_t * row_offsets = block.getBlockRowIndicesSharedPtr().get();
1015
+ if (row_offsets == NULL)
1016
+ {
1017
+ return services::Status(services::ErrorNullPtr);
1018
+ }
1019
+ for (size_t i = 0; i < nrows + 1; i++)
1020
+ {
1021
+ row_offsets[i] = rowOffsets[idx + i] - rowOffsets[idx] + 1;
1022
+ }
1023
+ }
1024
+ return services::Status();
1025
+ }
1026
+
1027
+ template <typename T>
1028
+ services::Status releaseSparseTBlock(CSRBlockDescriptor<T> & block)
1029
+ {
1030
+ if (block.getRWFlag() & (int)writeOnly)
1031
+ {
1032
+ NumericTableFeature & f = (*_ddict)[0];
1033
+ const int indexType = f.indexType;
1034
+
1035
+ if (data_management::features::DAAL_OTHER_T == indexType && features::internal::getIndexNumType<T>() != indexType)
1036
+ {
1037
+ block.reset();
1038
+ return services::Status(services::ErrorDataTypeNotSupported);
1039
+ }
1040
+
1041
+ if (features::internal::getIndexNumType<T>() != indexType)
1042
+ {
1043
+ size_t nrows = block.getNumberOfRows();
1044
+ size_t idx = block.getRowsOffset();
1045
+ size_t nValues = _rowOffsets.get()[idx + nrows] - _rowOffsets.get()[idx];
1046
+
1047
+ services::SharedPtr<byte> ptr = services::reinterpretPointerCast<byte, T>(block.getBlockValuesSharedPtr());
1048
+ services::SharedPtr<byte> location = services::SharedPtr<byte>(ptr, _ptr.get() + (_rowOffsets.get()[idx] - 1) * f.typeSize);
1049
+
1050
+ internal::getVectorDownCast(indexType, internal::getConversionDataType<T>())(nValues, ptr.get(), location.get());
1051
+ }
1052
+ }
1053
+ block.reset();
1054
+ return services::Status();
1055
+ }
1056
+
1057
+ services::Status setNumberOfColumnsImpl(size_t ncol) override
1058
+ {
1059
+ _ddict->setNumberOfFeatures(ncol);
1060
+ _ddict->setAllFeatures(_defaultFeature);
1061
+ return services::Status();
1062
+ }
1063
+ };
1064
+ typedef services::SharedPtr<CSRNumericTableIface> CSRNumericTableIfacePtr;
1065
+ typedef services::SharedPtr<CSRNumericTable> CSRNumericTablePtr;
1066
+ /** @} */
1067
+ } // namespace interface1
1068
+ using interface1::CSRNumericTableIface;
1069
+ using interface1::CSRNumericTableIfacePtr;
1070
+ using interface1::CSRBlockDescriptor;
1071
+ using interface1::CSRNumericTable;
1072
+ using interface1::CSRNumericTablePtr;
1073
+
1074
+ } // namespace data_management
1075
+ } // namespace daal
1076
+ #endif