getFeature

inline fun <T : Any, F : Any> NDAlgebra<T, *>.getFeature(structure: NDStructure<T>): F?

Get a feature of the structure in this scope. Structure features take precedence other context features

Return

a feature object or null if it isn't present.

Parameters

T

the type of items in the matrices.

F

the type of feature.

inline fun <T : Any> NDStructure<*>.getFeature(): T?