On Sunday, 5 April 2020 at 18:58:17 UTC, p.shkadzko wrote:
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
[...]
Why not use "chunks" from std.range?
import std.range: chunks;
void main() {
int[] arr = [10,20,30,40,50,60,70,80,90,100,110,120];
auto matrix1 =
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Hi.
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?
For example:
From
[10,20,30,40,50,60,70,80,90,100,110,120];
To
[
[10,20,30],
[40,50,60],
[70,80,90
On Saturday, 4 April 2020 at 14:00:01 UTC, 9il wrote:
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
[...]
You may want to look into a mir-algorithm package that supports
rectangular multidimensional arrays like NumPy.
[...]
Very good.
Thank you
G
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Hi.
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?
For example:
From
[10,20,30,40,50,60,70,80,90,100,110,120];
To
[
[10,20,30],
[40,50,60],
[70,80,90
On Saturday, 4 April 2020 at 10:52:30 UTC, MoonlightSentinel
wrote:
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Is there a Built-in function (no code, only a built-in
function)
that transform a linear array to a Matrix?
You can combine slide [1] and array [2]:
import
On Saturday, 4 April 2020 at 10:52:00 UTC, Boris Carvajal wrote:
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Hi.
Is there a Built-in function (no code, only a built-in
function)
that transform a linear array to a Matrix?
For example:
From
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?
You can combine slide [1] and array [2]:
import std;
void main()
{
auto input
On Saturday, 4 April 2020 at 09:25:14 UTC, Giovanni Di Maria
wrote:
Hi.
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?
For example:
From
[10,20,30,40,50,60,70,80,90,100,110,120];
To
[
[10,20,30],
[40,50,60],
[70,80,90
Hi.
Is there a Built-in function (no code, only a built-in function)
that transform a linear array to a Matrix?
For example:
From
[10,20,30,40,50,60,70,80,90,100,110,120];
To
[
[10,20,30],
[40,50,60],
[70,80,90],
[100,110,120]
];
Thank You very much
Cheers.
Giovanni