How to replicate dr.cuda.ArrayXf([1,2,3])
using Mitsuba?
#679
-
Hi! I'd like to create the same output as the abovementioned command, but using Mitsuba, so that the data type depends on the user-selected backend. How can I do that? Also: Is there documentation for this really basic vector/array/tensor stuff? I tried to look in the mitsuba and drjit docs, but didn't find a basic explanation on how to use the different data structures. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hi @maxfrei750 !! It looks like We definitely still need to and want to improve the documentation: Tensors and textures aren't even documented in Dr.Jit. Is there something specific that you feel like is lacking? "basic vector/array/tensor stuff" what were you expecting? |
Beta Was this translation helpful? Give feedback.
Hi @maxfrei750 !!
It looks like
ArrayXf
was never bound/aliased in Mitsuba. I wonder if this was intentional or if we just never needed it (you can usually useTensorXf
to accomplish the same goal). Until I figure that out, you should be able to at least monkey patch it with Python.We definitely still need to and want to improve the documentation: Tensors and textures aren't even documented in Dr.Jit. Is there something specific that you feel like is lacking? "basic vector/array/tensor stuff" what were you expecting?