Support sparse array

Đang mở
#60 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
matlab, python
Lĩnh vực
api

Hướng nghiên cứu

Start by reproducing the reported failure with start_instance(engine="matlab") and m.runpf(), using the matpower-pip example and the MATLAB sparse-array error as the entry point. Compare the MATLAB engine path with the existing Oct2Py behavior and verify that sparse results are returned in a scipy-compatible representation without breaking dense data handling.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi, I'm a matpower-pip maintainer. It currently fully support MATPOWER via octave and Oct2Py. I just got access to genuine MATLAB engine and test my package on it. Turns out, you didn't support sparse data.

TypeError: conversion of MATLAB sparse array to Python not supported

I suggest that you use scipy representation to support sparse: https://docs.scipy.org/doc/scipy/reference/sparse.html


Hopefully, we can do at least this in Python

from matpower import start_instance

m = start_instance(engine="matlab")
m.runpf()
Ngôn ngữ chính
Python
Star
97
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mathworks/matlab-engine-for-python

Tất cả issue của mathworks/matlab-engine-for-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.