canMaterialize

Checks if this tensor view can be materialized using the default strategy.

This method provides a quick check to determine if materialization is possible without actually performing the materialization operation. Useful for defensive programming and resource planning.

Return

true if this view can be materialized, false otherwise

Parameters

T

the data type constraint extending DType

V

the actual value type that will be stored and accessed


Checks if this tensor view can be materialized using a specific strategy.

This method allows checking materialization compatibility with a specific strategy before attempting the actual materialization operation.

Return

true if the strategy can materialize this view, false otherwise

Parameters

T

the data type constraint extending DType

V

the actual value type that will be stored and accessed

strategy

the MaterializationStrategy to check compatibility with