repositories {
maven{
url = uri("https://jitpack.io")
}
}
dependencies {
implementation ("com.github.Pascal-Institute:komat:1.9.4")
}
'Element' is a data class for contains various data types to apply komat matrix system.
It aims that it is possible to calculate other data type into matrix system as well as double.
- Double
- Byte
- Boolean
//Vect : 1D
val vect = Vect(1.0, 2.0, 3.0)
//Mat : 2D
val mat = mat{
v(1,2,3)
v(4,5,6)
}
//Cube : 3D
val cube = cube{
+mat
+mat
+mat
}