January 20, 2022 Learn » Re: number ranges | |||
|---|---|---|---|
| |||
...first_; > return cast(size_t)len;//*/ > } > ``` Good catch but we can't ignore '- empty_'. Otherwise... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...void createValuesArray(ref int[][] m, size_t recordsNeeded, size_t valuesPerRecord)
{
m = iota(recordsNeeded)
.map... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...void createBoolMatrix(ref uint[][] m, size_t numberOfTuples, size_t numberOfBoolsInTuple)
{
m = iota(numberOfTuples)
.map... | |||
January 20, 2022 Learn » Re: number ranges | |||
|---|---|---|---|
| |||
...d
// ...
size_t length() inout {
auto len = 1 + (last - front) / step;
return cast(size_t... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...i thinking! ;-)
// ---
void makeUniqueIDs(ref uint[] arr, size_t sz)
{
arr.reserve(sz);
// id needs... | |||
January 20, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...T && hasSlicing!T && hasLength!T && !isInfinite!T)
{
t.writeln;
}
void makeUniqueIDs(ref uint[] arr, size... | |||
January 20, 2022 General » Re: Scientific computing and parallel computing C++23/C++26 | |||
|---|---|---|---|
| |||
...is insufficient, I don't think it would...say for example cache size (or available registers... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...void createBoolMatrix(ref uint[][] m, size_t numberOfTuples, size_t numberOfBoolsInTuple)
{
m = iota(numberOfTuples)
.map... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...the outer block, like this:
uint[][] createBoolMatrix(size_t count) {
auto buffer = new uint[count... | |||
January 19, 2022 Learn » Re: automate tuple creation | |||
|---|---|---|---|
| |||
...randomValue(), randomValue() ];
}
void createBoolMatrix(ref uint[][] m, size_t count)
{
import std.algorithm : map;
import... | |||
Copyright © 1999-2021 by the D Language Foundation