Fix for #193

This commit is contained in:
Alexander Nozik 2021-01-20 15:07:39 +03:00
parent 7acea94e90
commit d00e7434a4

View File

@ -25,6 +25,7 @@ public class MatrixWrapper<T : Any>(
*/ */
@UnstableKMathAPI @UnstableKMathAPI
override fun <T : Any> getFeature(type: KClass<T>): T? = type.safeCast(features.find { type.isInstance(it) }) override fun <T : Any> getFeature(type: KClass<T>): T? = type.safeCast(features.find { type.isInstance(it) })
?: matrix.getFeature(type)
override fun equals(other: Any?): Boolean = matrix == other override fun equals(other: Any?): Boolean = matrix == other
override fun hashCode(): Int = matrix.hashCode() override fun hashCode(): Int = matrix.hashCode()