Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tatuya Kamada
wendelin.core
Commits
3c7abddb
Commit
3c7abddb
authored
May 20, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bigarray: Fix typos
parent
a280b53d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bigarray/__init__.py
bigarray/__init__.py
+4
-4
No files found.
bigarray/__init__.py
View file @
3c7abddb
...
...
@@ -285,7 +285,7 @@ class BigArray(object):
#print('len(vma0):\t', len(vma0))
view0
=
ndarray
(
view0_shape
,
self
.
_dtype
,
vma0
,
view0_offset
,
view0_stridev
)
# now take into accont indices after major one
# now take into acco
u
nt indices after major one
view
=
view0
[(
slice
(
None
),)
+
tuple
(
idx
[
1
:])]
#print('view0:\t', view0.shape)
...
...
@@ -293,17 +293,17 @@ class BigArray(object):
#print('View:\t', view)
#print('view/d:\t', view[dim_adjust])
# and finally take dimens
t
ions adjust into account and we are done
# and finally take dimensions adjust into account and we are done
return
view
[
dim_adjust
]
def
__setitem__
(
self
,
idx
,
v
):
# TODO idx = int, i.e. scalar assign
# reprsent changed area by ndarray via getitem, then leverage ndarray assignment
# repr
e
sent changed area by ndarray via getitem, then leverage ndarray assignment
a
=
self
.
__getitem__
(
idx
)
a
[:]
=
v
# XXX __array__(self) = self[:] ?
# (for numpy functions to accept bigaray as-is (if size permits))
# (for numpy functions to accept bigar
r
ay as-is (if size permits))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment