This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated: vector 1.01, cliviz 0.102, app 0.101
Added: sonatype resolver DemoVectorInterop Vec[N] * Matrix[M, N] extension method. Removed: JaMa comment.
- Loading branch information
c
committed
May 31, 2023
1 parent
b06c791
commit 53325e0
Showing
7 changed files
with
38 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import ai.dragonfly.democrossy.Demonstration | ||
import ai.dragonfly.math.matrix.Matrix | ||
import ai.dragonfly.math.matrix.util.* | ||
import ai.dragonfly.math.matrix.decomposition.* | ||
import ai.dragonfly.math.vector.* | ||
import ai.dragonfly.math.vector.Vec.* | ||
import ai.dragonfly.math.vector.Vec2.* | ||
import narr.* | ||
|
||
import ai.dragonfly.math.Constant.* | ||
|
||
object DemoVectorInterop extends Demonstration { | ||
def demo(): Unit = { | ||
val M0: Matrix[2, 3] = Matrix[2, 3]( | ||
NArray[NArray[Double]]( | ||
NArray[Double](1.0, `𝜑`, `√2`), | ||
NArray[Double](2.0, π, e), | ||
) | ||
) | ||
|
||
val v2: Vec[2] = Vec[2](1.0, 2.0) | ||
|
||
println(s"${v2.show}.times($M0\n) = ${v2.times[3](M0)}") | ||
} | ||
|
||
def name: String = "DemoVectorInterop" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters