-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔨 Introducing Python functionality for PCSR #3
base: master
Are you sure you want to change the base?
Conversation
Made the first commit by creating a README to pcsr-python-support branch
Exposed the Node structure being used inside the pcsr.cpp module as a Python object. The Node object can be created using the object constructor method in python.
Users can now use the PCSR object. All the functions present in the original PCSR.cpp code is not exposed yet. They will be exposed in upcoming commits. Made necessary changes in the cpp code to be compatible with the python version. Program to test the PCSR Python version is available in test.py. This program initializes a PCSR object with 10 nodes and adds edges using a for-loop. The resulting graph is outputted using the print_graph() method.
Added the python PCSR API for the following functions: 1. find_value() 2. get_edges() 3. get_size() 4. sparse_matrix_vector_multiplication() 5. bfs() Decided not to include half_list() function as it's a utility function not being used anywhere
Added description for the PCSR methods
Updated the README to contain documentation on how to use the PCSR class and it's methods.
Why this new featureHey @wheatman 👋🏽 I've made some updates to your PCSR project that will significantly enhance its accessibility for Python users. By leveraging the power of PyBind11, this integration simplifies the usage of PCSR within Python environments and Python developers can effortlessly tap into PCSR's functionalities. To ensure a smooth onboarding experience, I have created a comprehensive README file. This README provides detailed instructions on how to compile and import the PCSR package, enabling users to quickly and effortlessly dive into utilizing its features. I'm looking forward to your feedback and the opportunity to collaborate further by adding the following features into the PCSR python implementation
Best regards |
Hey @wheatman 👋🏽, I hope you're doing well! I wanted to bring your attention to the pull request I submitted recently regarding the Python functionality for the PCSR project. I understand that pull requests can sometimes get lost in the shuffle, so I wanted to kindly remind you about this contribution. Regards |
Exposing the PCSR API using PyBind11 so that users can use PCSR in Python