You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DynamicVector is a numpy based Python object that stores a vector that can dynamically increase in size. This array supports many python list methods and all the numpy methods. The underlaying numpy array and automatically sized to meet the storate need of the vector.
7
+
DynamicVector is a Python class designed to combine the flexibility of Python lists with the computational efficiency of NumPy arrays. It allows for dynamic resizing, list-like manipulation, and full access to NumPy’s powerful numerical operations.
8
8
9
+
## Features
9
10
11
+
-**Dynamic Resizing**: Automatically expands as new elements are appended or inserted, mimicking Python lists.
12
+
-**NumPy Integration**: Access to all NumPy array operations and methods via the `view` property.
13
+
-**List-Like Functionality**: Supports common list operations such as append, insert, and pop, making it highly versatile.
14
+
-**Optimized for Performance**: Takes advantage of NumPy’s speed and memory efficiency for handling large datasets.
10
15
11
16
## Installation
17
+
Ensure that `numpy` is installed in your environment. If not, you can install it using:
18
+
(note, this module was only tested against `numpy>2.0`)
This project uses `pytest` and `pytest-xdist` for testing. Tests are located in the `tests` folder. Tests that are very slow are marked as being "slow". The `tests` directory contains multiple subdirectories that contain equivalent slow tests are divided into multiple files to improve parallel execution. The original, slow tests are marked as "slow_skip" and skipped, while the subdirectory tests are marked as "subset".
To run tests, install the required packages and execute the following command:
122
+
This project uses `pytest` and `pytest-xdist` for testing. Tests are located in the `tests` folder. To run tests, install the required packages and execute the following command:
0 commit comments