Skip to content

Commit eeca8a6

Browse files
committed
update docs
1 parent 34b238b commit eeca8a6

File tree

4 files changed

+31
-37
lines changed

4 files changed

+31
-37
lines changed

README.md

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,25 @@ Generic Numerical Library for Science and Machine Learning.
1111
Contents
1212
--------
1313

14-
- `mir.ndslice` [Multidimensional Random Access Ranges and Arrays](http://dlang.org/phobos-prerelease/std_experimental_ndslice.html)
15-
- `mir.las.sum` Functions and Output Ranges for Summation Algorithms. Works with user-defined types.
16-
- Precise algorithm: improved analog of Python's `fsum`
17-
- Pairwise algorithm: fast version for Input Ranges
18-
- Kahan, KBN, and KB2 algorithms
19-
- `mir.combinatorics` Combinations, combinations with repeats, cartesian power, permutations.
14+
- `mir.ndslice` [Multidimensional Random Access Ranges and Arrays](http://dlang.org/phobos-prerelease/std_experimental_ndslice.html)
15+
- `mir.sparse` Sparse Tensors
16+
- `Sparse` - DOK format
17+
- Different ranges for COO format
18+
- `CompressedTensor` - CSR/CSC formats
19+
- `mir.sparse.blas` - Sparse BLAS for `CompressedTensor`
20+
- `mir.model.lda.hoffman` - Online variational Bayes for latent Dirichlet allocation (Online VB LDA) for sparse documents. LDA is used for topic modeling.
21+
- `mir.combinatorics` Combinations, combinations with repeats, cartesian power, permutations.
22+
- `mir.las.sum` Functions and Output Ranges for Summation Algorithms. Works with user-defined types.
23+
- Precise algorithm: improved analog of Python's `fsum`
24+
- Pairwise algorithm: fast version for Input Ranges
25+
- Kahan, KBN, and KB2 algorithms
26+
- `mir.blas` - this is slow snail, it is for experiments with BLAS API. Don't use for now.
27+
2028

2129
### In progress
2230

23-
- `mir.sparse` Sparse Tensors (see sparse branch and `v0.15.1-beta2`+)
24-
- `mir.sparse.blas` Spars BLAS
31+
- `mir.random` - non-uniform RNGs.
32+
- `mir.blas` - BLAS in D.
2533

2634
Documentation
2735
-------------

index.d

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
11
/**
22
Numerical library and mirror for upcoming numeric packages for the Dlang standard library.
3-
4-
$(DL
5-
$(DT $(LINK2 http://dlang.org/phobos-prerelease/std_experimental_ndslice.html, ndslice package)
6-
$(DD Multidimensional Random Access Ranges and Arrays)
7-
)
8-
$(DT $(DPMODULE2 las, sum)
9-
$(DD Functions and Output Ranges for Summation Algorithms. Works with user-defined types.)
10-
$(DD Precise algorithm: improved analog of Python's `fsum`)
11-
$(DD Pairwise algorithm: fast version for Input Ranges)
12-
$(DD Kahan, KBN, and KB2 algorithms)
13-
)
14-
$(DT $(DPMODULE2 combinatorics, package)
15-
$(DD $(DPREF2 combinatorics, package, permutations))
16-
$(DD $(DPREF2 combinatorics, package, cartesianPower))
17-
$(DD $(DPREF2 combinatorics, package, combinations))
18-
$(DD $(DPREF2 combinatorics, package, combinationsRepeat))
19-
)
20-
)
21-
223
*/
234
module mir;

modules.ddoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ MODULES =
66
$(MODULE mir.sparse.blas.gemv)
77
$(MODULE mir.sparse.blas.gemm)
88
$(MODULE mir.combinatorics.package)
9+
$(MODULE mir.model.lda.hoffman)

source/mir/sparse/package.d

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
/++
22
$(H2 Sparse Tensors)
33
4-
This is a submodule of $(LINK2 mir_ndslice.html, mir.ndslice).
5-
6-
74
License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
85
96
Authors: Ilya Yaroshenko
@@ -84,7 +81,7 @@ Sparse Slice in Dictionary of Keys (DOK) format.
8481
alias Sparse(size_t N, T) = Slice!(N, SparseMap!T);
8582

8683
/++
87-
SparseMap is a range, which is used internally by $(LREF Sparse).
84+
`SparseMap` is used internally by `Slice` type to represent $(LREF Sparse).
8885
+/
8986
struct SparseMap(T)
9087
{
@@ -197,7 +194,7 @@ private sizediff_t cmpCoo(size_t N)(const auto ref size_t[N] a, const auto ref s
197194
}
198195

199196
/++
200-
Returns unsorted range of (coordinate, values) pairs.
197+
Returns unsorted forward range of (coordinate, value) pairs.
201198
Params:
202199
slice = sparse slice with pure structure. Any operations on structure of a slice are not allowed.
203200
+/
@@ -256,7 +253,7 @@ pure unittest
256253
}
257254

258255
/++
259-
Returns unsorted range of coordinates.
256+
Returns unsorted forward range of coordinates.
260257
Params:
261258
slice = sparse slice with pure structure. Any operations on structure of a slice are not allowed.
262259
+/
@@ -312,7 +309,7 @@ pure unittest
312309
}
313310

314311
/++
315-
Returns unsorted range of values.
312+
Returns unsorted forward range of values.
316313
Params:
317314
slice = sparse slice with pure structure. Any operations on structure of a slice are not allowed.
318315
+/
@@ -459,7 +456,7 @@ unittest
459456
}
460457

461458
/++
462-
Returns compressed tensor with changed element type.
459+
Returns compressed tensor with different element type.
463460
+/
464461
CompressedTensor!(N, V, I, J)
465462
compressWithType
@@ -553,7 +550,7 @@ CompressedTensor!(N, V, I, J)
553550

554551

555552
/++
556-
Re-compress already compressed tensor. Makes it consequent in memory.
553+
Re-compresses a compressed tensor. Makes all values, indexes and pointers consequent in memory.
557554
+/
558555
CompressedTensor!(N + 1, V, I, J)
559556
recompress
@@ -590,7 +587,7 @@ CompressedTensor!(N + 1, V, I, J)
590587
return m.sliced(slice.shape);
591588
}
592589

593-
/// Compresstion of compressed tensor
590+
///
594591
unittest
595592
{
596593
auto slice = slice!double(5, 8);
@@ -618,10 +615,16 @@ unittest
618615
}
619616

620617
/++
618+
`CompressedTensor!(N, T, I, J)` is `Slice!(N - 1, CompressedMap!(T, I, J))`.
619+
620+
See_also: $(LREF CompressedMap)
621621
+/
622622
alias CompressedTensor(size_t N, T, I = uint, J = size_t) = Slice!(N - 1, CompressedMap!(T, I, J));
623623

624624
/++
625+
Compressed array is just a structure of values array and indexes array.
626+
627+
See_also: $(LREF CompressedTensor), $(LREF CompressedMap)
625628
+/
626629
struct CompressedArray(T, I = uint)
627630
if (is(I : size_t) && isUnsigned!I)
@@ -636,6 +639,7 @@ struct CompressedArray(T, I = uint)
636639
}
637640

638641
/++
642+
`CompressedMap` is used internally by `Slice` type to represent $(LREF CompressedTensor).
639643
+/
640644
struct CompressedMap(T, I = uint, J = size_t)
641645
if (is(I : size_t) && isUnsigned!I && is(J : size_t) && isUnsigned!J && I.sizeof <= J.sizeof)

0 commit comments

Comments
 (0)