Skip to content

Commit 59558be

Browse files
committed
fixup docs
1 parent 13c4e6c commit 59558be

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

source/mir/ndslice/filling.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Fills a matrix with the terms of a geometric progression in each row.
2020
Params:
2121
matrix = `m × n` matrix to fill
2222
vec = vector of progression coefficients length of `m`
23+
See_also: $(LINK2 https://en.wikipedia.org/wiki/Vandermonde_matrix, Vandermonde matrix)
2324
+/
2425
void fillVandermonde(F, SliceKind matrixKind, SliceKind kind)(Slice!(F*, 2, matrixKind) matrix, Slice!(const(F)*, 1, kind) vec)
2526
in {

source/mir/ndslice/slice.d

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,6 @@ auto sliced(size_t N, Iterator)(Iterator iterator, size_t[N] lengths...)
260260
/// $(LINK2 https://en.wikipedia.org/wiki/Vandermonde_matrix, Vandermonde matrix)
261261
@safe pure nothrow version(mir_test) unittest
262262
{
263-
auto vandermondeMatrix(Slice!(double*) x)
264-
@safe nothrow pure
265-
{
266-
import mir.ndslice.allocation: slice;
267-
auto ret = slice!double(x.length, x.length);
268-
foreach (i; 0 .. x.length)
269-
foreach (j; 0 .. x.length)
270-
ret[i][j] = x[i] ^^ j;
271-
return ret;
272-
}
273-
274263
import mir.ndslice.filling: fillVandermonde;
275264
import mir.ndslice.allocation: uninitSlice;
276265
auto x = [1.0, 2, 3, 4, 5].sliced;

0 commit comments

Comments
 (0)