xtensor
xtensor copied to clipboard
xshape docs: doxygen error
Public documentation for xshape:
https://xtensor.readthedocs.io/en/stable/api/xshape.html
Displays a doxygen error.
Thanks for reporting. Related: https://github.com/xtensor-stack/xtensor/issues/2480
I've cloned the master branch as of today (latest commit: 5f45138), and run the build instructions for the docs - I'm still seeing errors:
doxygengroup: Cannot find namespace “xt_xshape” in doxygen xml output for project “xtensor” from directory: ../xml
Am I missing something here?
Thanks, should be fixed in https://github.com/xtensor-stack/xtensor/pull/2624
Cheers, looks good to me.
As an aside, as the contents weren't quite what I was originally looking for - is there a way I can get the shape of a tensor at compile-time? E.g., Let's say I have an operation in my code, defined over two arguments - a 3N4 tensor and a 3N1 tensor. I'm aiming to build up a small library of concepts so I can appropriately constrain functions like this where shapes are known at compile-time. I know we have shape()
and dimension()
for arrays; do we have an equivalent that can function at compile-time (on appropriate types of course - e.g. dimension is known for xtensor
but would be useless for xarray
)? Thanks.
There is xtensor_fixed
in which the shape is fully specified at compile-time. For the other containers the shape is only known at runtime (though xtensor
's dimension is specified at compile-time). I don't think the library has any hybrid containers with one dimension templated and another not.