Add less restrictive methods for Array1

Đang mở
#348 4 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
35/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ệ
rust
Lĩnh vực
data

Hướng nghiên cứu

Start by inspecting Array1 and its existing as_slice and as_slice_mut interfaces, then compare them with the generic ndarray data-structure APIs. Determine which methods can safely use Array1's invariants, and consider the work complete when those specialized methods expose the intended less-restrictive behavior without invalid operations.

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

Mô tả

Array1 of ndarray currently suffers from ndarray's generic interfaces to its provided data structures.
One example are the as_slice and as_slice_mut methods that return an Option of a slice instead of directly returning a slice to the underlying data because in higher dimensional array this could be an invalid operation.
However, for Array1 it never is and so users of this library could profit from a specialized implementation of some methods on Array1 that make use of its special invariants.

Ngôn ngữ chính
Rust
Star
4.3k
Fork
391
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 rust-ndarray/ndarray

Tất cả issue của rust-ndarray/ndarray

Issue tương tự

Thêm issue về Rust

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.