Comments (7)
Can you elaborate on your use case? I've used it to just just slice an array in one particular dimension without specifying the bounds of the others.
from ndarray.
Yes exactly, that's what I do as well, slicing across one or more dimensions and leaving others untouched (where I use null then instead of giving explicit full bounds).
from ndarray.
See: https://github.com/scijs/ndarray-concat-rows/blob/master/index.js#L72
I'm updating the docs for another ticket so will add a note on this now.
from ndarray.
What about the example? I don't see any null's.
Am 07.01.2016 um 21:49 schrieb Ricky Reusser:
See: https://github.com/scijs/ndarray-concat-rows/blob/master/index.js#L72
I'm updating the docs for another ticket so will add a note on this now.
β
Reply to this email directly or view it on GitHub
#23 (comment).
from ndarray.
Ah, sorry. Yeah, seemed (unless I'm wrong) that as long as it's undefined or null (omitted as an argument = undefined), lo doesn't increase the lower bound and hi doesn't decrease the upper bound in the unspecified dimensions.
from ndarray.
In other words, I used that to grab a section of the ndarray along the first dimension only by leaving the others implicitly unspecified. Concatenating cols was a little more complicated because I had to construct the array of indices explicitly.
(Side note: I'm realizing as I clean some of this up that really more and more of the code should use dynamic code generation to keep this generic n-dimensional programming from actually having to operate in an abstract number of dimensions. With code generation, you just generate the code for the actual number of dimensions for the given inputβ¦)
But anyway, AFAIK, either null or implicitly undefined both works.
from ndarray.
Right, ok.
About dynamic code generation, as long as it actually has a measureable performance benefit and the code is used enough times that it matters I'm all for it.
from ndarray.
Related Issues (20)
- Provide searchable API docs HOT 4
- Masked arrays for typed arrays HOT 8
- Docs for hi/lo are confusing HOT 8
- Docs for transpose are wrong HOT 2
- Dot product HOT 3
- Buffer problems
- load a series of images as a volume HOT 1
- How to convert an ndarray back to a buffer/array/β¦? HOT 2
- Any standard way to `unindex` ? HOT 2
- deleted
- ndarray.set the i, j vector HOT 4
- Code generation HOT 3
- Convert to JS Array? HOT 6
- ndarray not getting value as expected. HOT 2
- Validate input for get method (and others potentially)
- GPU support HOT 1
- Use Proxies to make indexable ndarrays HOT 5
- implementing ndarray in C++ for performance HOT 2
- hi and lo are behaving unexpectedly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ndarray.