dnumeric 0.1.6
D Numeric Library with R syntax
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
DNumeric
D Numeric Library with R Syntax
Import
Add next line to your dub.json
"dnumeric": "~>0.1.0"
or dub.sdl
dependency "dnumeric" version="~>0.1.0"
Usage
// Vector Declaration
auto a = Vector(1,10) // Vector [1,2,3,4,5,6,7,8,9,10]
auto b = Vector(1,10,2) // Vector [1,3,5,7,9]
auto c = Vector([1,2,3,5,8])
// Operation with Vector
b.dot(a) // Inner product
b + c // Addition (also subtraction)
b * c // Multiplication (also division)
// Matrix Declartion
auto m = Matrix([1,2,3,4], 2, 2) // Matrix [[1,3],[2,4]]
auto n = Matrix([1,2,3,4], 2, 2, false) // Matrix [[1,2],[3,4]]
auto o = Matrix([[1,2],[3,4]])
auto p = Matrix(Vector([1,2,3,4]), 2, 2, false)
// Utils
m.det // Determinant
auto res = m.lu // lu decomposition
res[0] // l matrix
res[1] // u matrix
- Registered by Tae Geun Kim
- 0.1.6 released 6 years ago
- Axect/DNumeric
- BSD 3-clause
- Copyright © 2018, Tae Geun Kim
- Authors:
- Dependencies:
- none
- Versions:
-
0.6.1 2018-Nov-02 0.6.0 2018-Nov-02 0.5.2 2018-Sep-11 0.5.1 2018-Aug-23 0.5.0 2018-Aug-22 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
83 downloads total
-
- Score:
- 0.5
- Short URL:
- dnumeric.dub.pm