1 repository
Deferred creation of tensors with specific values, such as zeros or linear sequences, evaluated only on access.
Distinct from Lazy Initialization: Focuses on numerical tensor initialization rather than general object creation for startup performance.
Explore 1 awesome GitHub repository matching development tools & productivity · Lazy Tensor Initialization. Refine with filters or upvote what's useful.
xtensor is a C++ multidimensional array library for numerical computing that provides N-dimensional containers with an interface mirroring the NumPy API. It utilizes a lazy evaluation expression engine to defer numerical computations until assignment, which minimizes memory allocations and intermediate copies. The library features a foreign memory array adaptor that allows it to wrap external buffers, such as NumPy arrays, to perform numerical operations in-place without duplicating data. It further optimizes performance through lazy broadcasting and a system that manages the lifetime of temp
Generates lazy expressions for array initialization that are only computed upon access or assignment.