LinearSpace.compute -> LinearSpace.withComputedAttribute

This commit is contained in:
Alexander Nozik 2024-03-27 07:45:57 +03:00
parent a67bda8a33
commit 1be6a5ca0e

View File

@ -182,7 +182,7 @@ public interface LinearSpace<T, out A : Ring<T>> : MatrixScope<T> {
* better use [StructureND.getOrComputeAttribute].
*/
@UnstableKMathAPI
public fun <V : Any, A : StructureAttribute<V>> Matrix<T>.compute(
public fun <V : Any, A : StructureAttribute<V>> Matrix<T>.withComputedAttribute(
attribute: A,
): Matrix<T>? {
return if (attributes[attribute] != null) {