This language bar is your friend. Select your favorite languages!

Idiom #26 Create a 2-dimensional array

Declare and initialize a matrix x having m rows and n columns, containing real numbers.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 56 2019-04-14, 17:22 Restored version 54 programming-idioms.org
👁 Δ 55 2019-04-09, 08:44 1 1
👁 Δ 54 2019-04-06, 14:08 [Go] Fix comment programming-idioms.org
👁 Δ 53 2019-03-08, 10:10 New Elixir implementation by user [JohanW] JohanW
👁 Δ 52 2019-02-16, 07:58 [Clojure] Use i and j per diagram Alexander
👁 Δ 51 2019-02-16, 07:58 [Clojure] More interesting test case Alexander
👁 Δ 50 2019-02-16, 07:50 [Clojure] Fix typo in explanation Alexander
👁 Δ 49 2019-02-16, 07:49 [Clojure] Simplifying to static value in all cells Alexander
👁 Δ 48 2019-02-16, 07:47 New Clojure implementation by user [Alexander] Alexander
👁 Δ 47 2018-12-02, 14:16 [Scala] Var name x programming-idioms.org
👁 Δ 46 2018-11-29, 01:42 New Scala implementation by user [feng] feng
👁 Δ 45 2018-11-09, 14:07 New JS implementation by user [devbg] devbg
👁 Δ 44 2018-08-05, 12:06 [Cpp] error: ‘>>’ should be ‘> >’ within a nested template argument list programming-idioms.org
👁 Δ 43 2018-06-24, 10:27 [Lua] Variable name x programming-idioms.org
👁 Δ 42 2018-06-24, 10:24 [Lua] Better comments (plural, etc.) programming-idioms.org
👁 Δ 41 2018-05-10, 09:31 [Rust] Use M and N. No sample values. No main func. +DemoURL programming-idioms.org
👁 Δ 40 2018-05-09, 20:32 [Go] Same dimensions as picture programming-idioms.org
👁 Δ 39 2018-05-09, 01:42 [Rust] make M, N constants, use x for array name Aquamo
👁 Δ 38 2018-05-09, 01:38 [Rust] change to use floating point numbers Aquamo
👁 Δ 37 2018-05-09, 01:34 New Rust implementation by user [Aquamo] Aquamo
👁 Δ 36 2018-05-08, 00:39 New Cpp implementation by user [fantasy] fantasy
👁 Δ 35 2017-06-13, 15:50 New Scheme implementation by user [Dodopod] Dodopod
👁 Δ 34 2016-11-04, 23:06 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 33 2016-11-04, 11:57 [PHP] No sample values programming-idioms.org
👁 Δ 32 2016-11-04, 11:54 [Go] Comment emphasis programming-idioms.org
👁 Δ 31 2016-11-04, 11:53 [C] Less braces programming-idioms.org
👁 Δ 30 2016-09-20, 13:55 [Lua] cross reference programming-idioms.org
👁 Δ 29 2016-04-07, 09:37 [Lua] cross reference
👁 Δ 28 2016-04-07, 06:44 New Lua implementation by user [Nepta]
👁 Δ 27 2016-02-19, 14:56 [PHP] specification of two dimension array of size m,n
👁 Δ 26 2016-02-19, 14:23 New PHP implementation by user [Feifan]
👁 Δ 25 2016-02-18, 17:21 Restored version 23
👁 Δ 24 2016-02-18, 16:57 New Csharp implementation by user [javasucks]
👁 Δ 23 2016-02-17, 16:50 New Ada implementation by user [Smaehtin]
👁 Δ 22 2016-02-17, 11:25 New Csharp implementation by user [javasucks]
👁 Δ 21 2016-01-27, 11:02 [Erlang] Comment emphasize
👁 Δ 20 2016-01-26, 02:11 New Erlang implementation by user [elbrujohalcon]
👁 Δ 19 2016-01-07, 14:12 [C] Alternative code in comment -> new separate implementation
👁 Δ 18 2016-01-07, 14:11 New C implementation by user [programming-idioms.org]
👁 Δ 17 2015-12-30, 17:50 New Go implementation by user [programming-idioms.org]
👁 Δ 16 2015-12-30, 17:46 [Go] +DemoURL
👁 Δ 15 2015-11-30, 12:37
👁 Δ 14 2015-10-29, 14:05
👁 Δ 13 2015-09-04, 20:46
👁 Δ 12 2015-09-04, 20:45
👁 Δ 11 2015-09-04, 20:43
👁 Δ 10 2015-09-03, 16:16
👁 Δ 9 2015-08-22, 20:58
👁 Δ 8 2015-08-21, 16:08
👁 Δ 7 2015-08-20, 15:37
👁 Δ 6 2015-08-20, 10:15
👁 Δ 5 2015-08-19, 17:12
👁 Δ 4 2015-07-31, 19:28
👁 Δ 3 2015-05-06, 21:04
👁 Δ 2 2015-04-02, 10:51
1 2015-04-02, 10:50