Override point function in GslMatrixContext

This commit is contained in:
Iaroslav Postovalov 2021-01-15 23:01:35 +07:00
parent 1c70e73a71
commit de289afb7b
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7

View File

@ -51,6 +51,9 @@ public abstract class GslMatrixContext<T : Any, H1 : CStructVar, H2 : CStructVar
public override fun produce(rows: Int, columns: Int, initializer: (i: Int, j: Int) -> T): GslMatrix<T, H1> = public override fun produce(rows: Int, columns: Int, initializer: (i: Int, j: Int) -> T): GslMatrix<T, H1> =
produceDirtyMatrix(rows, columns).fill(initializer) produceDirtyMatrix(rows, columns).fill(initializer)
public override fun point(size: Int, initializer: (Int) -> T): Point<T> =
produceDirtyVector(size).fill(initializer)
} }
/** /**