[[bench]]
harness = false
name = "bench_distributions"
path = "bench/bench_distributions.rs"
[[bench]]
harness = false
name = "core_operations_benchmark"
path = "bench/core_operations_benchmark.rs"
[[bench]]
harness = false
name = "expression_templates_benchmark"
path = "bench/expression_templates_benchmark.rs"
[[bench]]
name = "fft_benchmark"
path = "benches/fft_benchmark.rs"
[[bench]]
name = "linear_algebra_benchmark"
path = "benches/linear_algebra_benchmark.rs"
[[bench]]
harness = true
name = "numpy_comparison"
path = "bench/bench.rs"
[[bench]]
harness = false
name = "numpy_comparison_benchmark"
path = "bench/numpy_comparison_benchmark.rs"
[[bench]]
name = "production_readiness_benchmark"
path = "benches/production_readiness_benchmark.rs"
[[bench]]
harness = false
name = "simd_vs_scalar_benchmark"
path = "bench/simd_vs_scalar_benchmark.rs"
[[bench]]
name = "simple_benchmark"
path = "benches/simple_benchmark.rs"
[[bench]]
name = "simple_production_benchmark"
path = "benches/simple_production_benchmark.rs"
[[bench]]
name = "special_functions_benchmark"
path = "benches/special_functions_benchmark.rs"
[dependencies.arrow]
optional = true
version = "57.1.0"
[dependencies.arrow-array]
optional = true
version = "57.1.0"
[dependencies.arrow-buffer]
optional = true
version = "57.1.0"
[dependencies.arrow-cast]
optional = true
version = "57.1.0"
[dependencies.arrow-schema]
optional = true
version = "57.1.0"
[dependencies.bytemuck]
features = ["derive"]
optional = true
version = "1.24.0"
[dependencies.byteorder]
version = "1.5.0"
[dependencies.csv]
version = "1.4.0"
[dependencies.futures-intrusive]
optional = true
version = "0.5.0"
[dependencies.lazy_static]
version = "1.5.0"
[dependencies.memmap2]
version = "0.9.9"
[dependencies.num-traits]
version = "0.2.19"
[dependencies.num_cpus]
version = "1.17.0"
[dependencies.numpy]
optional = true
version = "0.27.1"
[dependencies.oxicode]
features = ["serde"]
version = "0.1.1"
[dependencies.paste]
version = "1.0.15"
[dependencies.pyo3]
features = ["extension-module"]
optional = true
version = "0.27.2"
[dependencies.regex]
version = "1.12.2"
[dependencies.scirs2-core]
features = ["random", "array", "simd", "parallel", "linalg"]
version = "0.1.1"
[dependencies.scirs2-fft]
version = "0.1.1"
[dependencies.scirs2-linalg]
version = "0.1.1"
[dependencies.scirs2-ndimage]
version = "0.1.1"
[dependencies.scirs2-signal]
version = "0.1.1"
[dependencies.scirs2-spatial]
version = "0.1.1"
[dependencies.scirs2-special]
version = "0.1.1"
[dependencies.scirs2-stats]
version = "0.1.1"
[dependencies.serde]
features = ["derive"]
version = "1.0.228"
[dependencies.serde-pickle]
version = "1.2.0"
[dependencies.serde_json]
version = "1.0.148"
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
features = ["sync", "rt"]
optional = true
version = "1.48.0"
[dependencies.wgpu]
optional = true
version = "28.0.0"
[dependencies.zip]
version = "6"
[dev-dependencies.approx]
version = "0.5.1"
[dev-dependencies.criterion]
version = "0.8.1"
[dev-dependencies.proptest]
version = "1.9.0"
[dev-dependencies.serde_json]
version = "1.0.148"
[dev-dependencies.serial_test]
version = "3.2.0"
[dev-dependencies.tempfile]
version = "3.24.0"
[dev-dependencies.tokio]
features = ["rt", "macros"]
version = "1.48.0"
[[example]]
name = "apply_over_axes_example"
path = "examples/apply_over_axes_example.rs"
[[example]]
name = "array_creation_example"
path = "examples/array_creation_example.rs"
[[example]]
name = "array_manipulation_example"
path = "examples/array_manipulation_example.rs"
[[example]]
name = "arrow_example"
path = "examples/arrow_example.rs"
[[example]]
name = "autodiff_example"
path = "examples/autodiff_example.rs"
[[example]]
name = "axis_ops_example"
path = "examples/axis_ops_example.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "broadcasting_example"
path = "examples/broadcasting_example.rs"
[[example]]
name = "comparison_example"
path = "examples/comparison_example.rs"
[[example]]
name = "expression_templates_example"
path = "examples/expression_templates_example.rs"
[[example]]
name = "fft_example"
path = "examples/fft_example.rs"
[[example]]
name = "gpu_benchmark"
path = "examples/gpu_benchmark.rs"
[[example]]
name = "gpu_example"
path = "examples/gpu_example.rs"
[[example]]
name = "indexing_example"
path = "examples/indexing_example.rs"
[[example]]
name = "large_scale_memory_example"
path = "examples/large_scale_memory_example.rs"
[[example]]
name = "machine_learning_example"
path = "examples/machine_learning_example.rs"
[[example]]
name = "masked_array_example"
path = "examples/masked_array_example.rs"
[[example]]
name = "matrix_decomp_example"
path = "examples/matrix_decomp_example.rs"
[[example]]
name = "matrix_example"
path = "examples/matrix_example.rs"
[[example]]
name = "memory_alloc_example"
path = "examples/memory_alloc_example.rs"
[[example]]
name = "memory_optimize_example"
path = "examples/memory_optimize_example.rs"
[[example]]
name = "mmap_example"
path = "examples/mmap_example.rs"
[[example]]
name = "npy_npz_example"
path = "examples/npy_npz_example.rs"
[[example]]
name = "parallel_optimize_example"
path = "examples/parallel_optimize_example.rs"
[[example]]
name = "performance_benchmark"
path = "examples/performance_benchmark.rs"
[[example]]
name = "polynomial_example"
path = "examples/polynomial_example.rs"
[[example]]
name = "random_distributions_example"
path = "examples/random_distributions_example.rs"
[[example]]
name = "random_simple_test"
path = "examples/random_simple_test.rs"
[[example]]
name = "randomized_linalg_example"
path = "examples/randomized_linalg_example.rs"
[[example]]
name = "scientific_computing_example"
path = "examples/scientific_computing_example.rs"
[[example]]
name = "scirs2_optimization"
path = "examples/scirs2_optimization.rs"
[[example]]
name = "scirs_integration_example"
path = "examples/scirs_integration_example.rs"
[[example]]
name = "shape_manipulation_example"
path = "examples/shape_manipulation_example.rs"
[[example]]
name = "simd_example"
path = "examples/simd_example.rs"
[[example]]
name = "sparse_example"
path = "examples/sparse_example.rs"
[[example]]
name = "special_functions_example"
path = "examples/special_functions_example.rs"
[[example]]
name = "statistics_example"
path = "examples/statistics_example.rs"
[[example]]
name = "stride_tricks_example"
path = "examples/stride_tricks_example.rs"
[[example]]
name = "type_conversion_example"
path = "examples/type_conversion_example.rs"
[[example]]
name = "ufuncs_example"
path = "examples/ufuncs_example.rs"
[[example]]
name = "unique_benchmark"
path = "examples/unique_benchmark.rs"
[[example]]
name = "unique_example"
path = "examples/unique_example.rs"
[[example]]
name = "views_example"
path = "examples/views_example.rs"
[features]
arrow = ["dep:arrow", "dep:arrow-array", "dep:arrow-buffer", "dep:arrow-cast", "dep:arrow-schema"]
ci-safe = ["matrix_decomp", "validation"]
default = ["matrix_decomp", "scirs"]
fast = []
gpu = ["dep:wgpu", "dep:bytemuck", "dep:futures-intrusive", "dep:tokio"]
lapack = []
matrix_decomp = []
python = ["dep:pyo3", "dep:numpy"]
scirs = []
unstable = []
validation = []
[lib]
crate-type = ["cdylib", "rlib"]
name = "numrs2"
path = "src/lib.rs"
[lints.rust]
dead_code = "allow"
mismatched_lifetime_syntaxes = "allow"
unknown_lints = "allow"
unpredictable_function_pointer_comparisons = "allow"
unused_imports = "allow"
unused_variables = "allow"
[package]
authors = ["COOLJAPAN OU (Team KitaSan)"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["science"]
description = "A Rust implementation inspired by NumPy for numerical computing (NumRS2)"
documentation = "https://docs.rs/numrs2"
edition = "2021"
homepage = "https://github.com/cool-japan/numrs"
keywords = ["numpy", "numerical", "array", "linear-algebra", "mathematics"]
license = "MIT OR Apache-2.0"
name = "numrs2"
readme = "README.md"
repository = "https://github.com/cool-japan/numrs"
version = "0.1.0"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "memory_profile_test"
path = "tests/memory_profile_test.rs"
[[test]]
name = "numpy_compatibility_validation"
path = "tests/numpy_compatibility_validation.rs"
[[test]]
name = "parallel_processing_test"
path = "tests/parallel_processing_test.rs"
[[test]]
name = "performance_benchmark"
path = "tests/performance_benchmark.rs"
[[test]]
name = "simd_verification_test"
path = "tests/simd_verification_test.rs"
[[test]]
name = "test_array_operations_reference"
path = "tests/test_array_operations_reference.rs"
[[test]]
name = "test_array_ops"
path = "tests/test_array_ops.rs"
[[test]]
name = "test_complex_seed_scenario"
path = "tests/test_complex_seed_scenario.rs"
[[test]]
name = "test_core_array_operations"
path = "tests/test_core_array_operations.rs"
[[test]]
name = "test_datetime_integration"
path = "tests/test_datetime_integration.rs"
[[test]]
name = "test_distribution_reference"
path = "tests/test_distribution_reference.rs"
[[test]]
name = "test_fft_properties"
path = "tests/test_fft_properties.rs"
[[test]]
name = "test_fft_property_tests"
path = "tests/test_fft_property_tests.rs"
[[test]]
name = "test_financial_comprehensive"
path = "tests/test_financial_comprehensive.rs"
[[test]]
name = "test_fixed_features"
path = "tests/test_fixed_features.rs"
[[test]]
name = "test_global_vs_direct_vonmises"
path = "tests/test_global_vs_direct_vonmises.rs"
[[test]]
name = "test_gpu_reductions"
path = "tests/test_gpu_reductions.rs"
[[test]]
name = "test_gpu_reductions_f32"
path = "tests/test_gpu_reductions_f32.rs"
[[test]]
name = "test_indexing"
path = "tests/test_indexing.rs"
[[test]]
name = "test_io_comprehensive"
path = "tests/test_io_comprehensive.rs"
[[test]]
name = "test_linalg_properties"
path = "tests/test_linalg_properties.rs"
[[test]]
name = "test_linalg_reference"
path = "tests/test_linalg_reference.rs"
[[test]]
name = "test_masked"
path = "tests/test_masked.rs"
[[test]]
name = "test_matrix_stability"
path = "tests/test_matrix_stability.rs"
[[test]]
name = "test_new_functions"
path = "tests/test_new_functions.rs"
[[test]]
name = "test_proptest_array_properties"
path = "tests/test_proptest_array_properties.rs"
[[test]]
name = "test_proptest_mathematical"
path = "tests/test_proptest_mathematical.rs"
[[test]]
name = "test_random_advanced"
path = "tests/test_random_advanced.rs"
[[test]]
name = "test_random_advanced_distributions"
path = "tests/test_random_advanced_distributions.rs"
[[test]]
name = "test_random_properties"
path = "tests/test_random_properties.rs"
[[test]]
name = "test_random_reference"
path = "tests/test_random_reference.rs"
[[test]]
name = "test_random_state"
path = "tests/test_random_state.rs"
[[test]]
name = "test_random_statistical"
path = "tests/test_random_statistical.rs"
[[test]]
name = "test_random_values_collector"
path = "tests/test_random_values_collector.rs"
[[test]]
name = "test_scirs_integration"
path = "tests/test_scirs_integration.rs"
[[test]]
name = "test_scirs_reference"
path = "tests/test_scirs_reference.rs"
[[test]]
name = "test_special_properties"
path = "tests/test_special_properties.rs"
[[test]]
name = "test_special_reference"
path = "tests/test_special_reference.rs"
[[test]]
name = "test_string_ops"
path = "tests/test_string_ops.rs"
[[test]]
name = "test_structured_arrays"
path = "tests/test_structured_arrays.rs"
[[test]]
name = "test_tensor_ops"
path = "tests/test_tensor_ops.rs"
[[test]]
name = "test_unique"
path = "tests/test_unique.rs"
[[test]]
name = "test_values_helper"
path = "tests/test_values_helper.rs"
[[test]]
name = "test_vonmises_randomness_consumption"
path = "tests/test_vonmises_randomness_consumption.rs"
[[test]]
name = "test_vonmises_seed_issue"
path = "tests/test_vonmises_seed_issue.rs"