Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
fill a two dimensional array with default value
Soreepeong
Programming language:
Whatever
2021-07-16 04:48:58
0
Q:
fill a two dimensional array with default value
Chris
Code:
Whatever
2021-09-16 21:41:05
for (double[] row: matrix) Arrays.fill(row, 1.0);
1
Tags
array
value
two
Related
apply same shuffle to two arrays numpy
print column in 2d numpy array
how to assign 2d vectors value to a 2d vector
Declare, instantiate, initialize and use a one-dimensional array
fill np array with same value
initializing 2d vector
New to Communities?
Join the community