vbarrielle / dense_mats

Traits to abstract over sparse matrices in rust
1 stars 2 forks source link

Type checked contiguous data #4

Open vbarrielle opened 9 years ago

vbarrielle commented 9 years ago

Have some marker in the Tensor type to be able to assert at compile time whether an array is contiguous or not.

If done using a phantom data marker, this should be easily propagated through methods:

New type aliases would be needed then.