Skip to content
Discussion options

You must be logged in to vote

The solution was rather simple. Functions like dr.zeros expect a data type as first argument. So one can simply pass a dynamic data type like mi.Float to them, e.g.:

dr.zeros(mi.Float, 3)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@njroussel
Comment options

Answer selected by njroussel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants