Comments (6)
It's already defined in matrix.h as small_matrix
.
from array.
Thanks, that looks like the right header. I'm looking for the N-dimensional generalization of this - something I can use to define 3D and > arrays.
from array.
Gah, I clearly should have read the request more carefully. Now I'm really curious what use you have for a fixed size high dimensional array!
from array.
I was thinking about this a bit. It's probably a good idea to add a fixed_dense_shape
type (see #74). This is tricky enough to implement that we should provide a wrapper.
I think adding an alias for array is more questionable though, and not that hard for user code to do with fixed_dense_shape
, since it's a one liner with that (replaces your CompactShapeHelper
), and doesn't require any big leaps of template programming. It also still requires some decisions from the user (e.g. initialized vs. not).
from array.
Thanks, the CompactShapeHelper replacement was most of the code, and I can remove our own implementation of that.
Subsidiary question: do you think matrix_shape and vector_shape from image.h should now also be defined in terms of fixed_dense_shape? This can provide a 'guide' for users that are looking to implement the same.
Thanks again!
from array.
matrix_shape
has the dense dimension as the second dimension, so it wouldn't be the same thing...
from array.
Related Issues (20)
- Automatic strides for a final dim of extent 1 is 1 instead of product of previous extents in the default and dense_array case
- whole-matrix einsum is slower than hand-written code HOT 2
- Remove copies from Einstein expression construction HOT 1
- Consider removing make_dense* functions
- Comparison with mdspan/mdarray HOT 1
- auto_allocator could fall back to a base allocator when the allocation is too big
- array's move constructor default constructs an allocator before using the other allocator
- Reshape an array in runtime HOT 1
- Host doxygen generated docs somewhere HOT 1
- Template argument order issue in make_* functions that return an array
- Write a FAQ with examples of how to do common tasks HOT 1
- Need a version of generate() that takes indices HOT 3
- Numpy -> nda::array cheat sheet?
- call of overloaded βfor_each_value_in_order<(nda::shape<>::rank() - 1)>(nda::shape<>::index_type, void (&)(const int&, int&), std::pair<const int*, std::tuple<> >&, std::pair<int*, std::tuple<> >&)β is ambiguous HOT 4
- `make` broken on Apple Silicon Macs with Xcode HOT 1
- reinterpret_shape doesn't resolve bare shape HOT 3
- const_cast for array_ref<const T> HOT 8
- 3x1x3 interleaved layout returns y().stride() of 1 instead of 9 HOT 4
- errors.cpp test is failing silently on gcc
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 array.