- Svanik Sharma
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const mem = std.mem; | |
const meta = std.meta; | |
const math = std.math; | |
const Vector = meta.Vector; | |
const expect = std.testing.expect; | |
fn generateSquareMatrix(N: usize, allocator: mem.Allocator, gen_rand: bool) ![][]f64 { | |
var matrix: [][]f64 = undefined; | |
matrix = try allocator.alloc([]f64, N); |