primal
primal points to the actual tensor
Samples
import org.diffkt.DScalar
import org.diffkt.FloatScalar
fun main() {
//sampleStart
var s : DScalar
s = FloatScalar(1.0f)
val primal = s.primal
println("primal = ${primal}")
// output should be
// primal = 1.0F
//sampleEnd
}