Skip to content

Axect/DNumeric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DNumeric

D Numeric Library with R Syntax

Import

Add next line to your dub.json

"dnumeric": "~>0.6.1"

or dub.sdl

dependency "dnumeric" version="~>0.6.1"
  • Caution : After 0.6.0, there are lots of changes.

Usage

1. Matrix Declaration

# R
a = matrix(c(1,2,3,4), 2, 2, T)
// DNumeric
import dnum.matrix;

auto a = matrix([1,2,3,4], 2, 2, true);

2. Print

# R
a = matrix(1:4, 2, 2, T)
print(a)
// DNumeric
import dnum.matrix;
import std.stdio : writeln;

auto a = matrix([1,2,3,4], 2, 2, true);
a.writeln;

About

D language Numerical Computation Repository

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages