0.1.4-dev-4 #86

Merged
altavir merged 38 commits from dev into master 2020-04-30 11:36:59 +03:00
Showing only changes of commit e42058e571 - Show all commits

View File

@ -69,9 +69,14 @@ class ViktorNDField(override val shape: IntArray) : NDField<Double, RealField, V
return (a.f64Buffer + b.f64Buffer).asStructure()
}
// override inline fun ViktorNDStructure.plus(b: ViktorNDStructure): ViktorNDStructure {
// return (f64Buffer + b.f64Buffer).asStructure()
// }
override inline fun ViktorNDStructure.plus(b: ViktorNDStructure): ViktorNDStructure {
return (f64Buffer + b.f64Buffer).asStructure()
}
override inline fun ViktorNDStructure.minus(b: ViktorNDStructure): ViktorNDStructure {
return (f64Buffer - b.f64Buffer).asStructure()
}
override fun multiply(a: ViktorNDStructure, k: Number): ViktorNDStructure {
return (a.f64Buffer * k.toDouble()).asStructure()