mitsuba-renderer / drjit

Dr.Jit — A Just-In-Time-Compiler for Differentiable Rendering
BSD 3-Clause "New" or "Revised" License
563 stars 40 forks source link

dr.linspace(mi.Float, -1,1,256) output single value #203

Closed chaihahaha closed 9 months ago

chaihahaha commented 9 months ago

mitsuba version: 3.4.0 drjit version: 0.4.3 os: windows x86_64

import mitsuba as mi
import drjit as dr
mi.set_variant('scalar_rgb')
print(dr.linspace(mi.Float, -1, 1  256))

the output is a single value -1 instead of a vector.

njroussel commented 9 months ago

Hi @chaihahaha

This is expected behavior. You can read more about it here: https://github.com/mitsuba-renderer/mitsuba3/issues/775