Skip to content Skip to sidebar Skip to footer
Showing posts with the label Multidimensional Array

How To Append/replace An Item From Multi Dimensional Array By An Item From Another Multi-dimensional Array Based On A Specific Condition

I have 2 3-d arrays and am trying to replace the innermost element of 1st with the elements of 2nd … Read more How To Append/replace An Item From Multi Dimensional Array By An Item From Another Multi-dimensional Array Based On A Specific Condition

Fill Two-dimensional List With Values Instead Of Initializing It First With Zeros

I have a two-dimensional array that I want to fill up with values that represent powers but my prob… Read more Fill Two-dimensional List With Values Instead Of Initializing It First With Zeros

Why Is B = Numpy.dot(a,x) So Much Slower Looping Through Doing B[i,:,:] = Numpy.dot(a[i,:,:],x) )?

I'm getting some efficiency test results that I can't explain. I want to assemble a matrix… Read more Why Is B = Numpy.dot(a,x) So Much Slower Looping Through Doing B[i,:,:] = Numpy.dot(a[i,:,:],x) )?

Detecting Rectangles (sub-arrays Of Same Element Value) In 2-d List

A rectangle is defined as any rectangular-shaped section of zeros within a 2-d array of 1s and 0s. … Read more Detecting Rectangles (sub-arrays Of Same Element Value) In 2-d List

Deep Learning (lstm) With Keras And Variable Size Of Inputs

I am trying to implement a lstm model with keras. The problem is that I have data of different shap… Read more Deep Learning (lstm) With Keras And Variable Size Of Inputs

How Do I Apply Function To Third-dimension Array Effectively With Numpy?

I want to apply arbitrary function to 3d-ndarray as element, which use (3rd-dimensional) array for … Read more How Do I Apply Function To Third-dimension Array Effectively With Numpy?

Numpy Array Indexing With Other Arrays Yields Broadcasting Error

I have two indexing arrays. elim=range(130,240) tlim=range(0,610) The array to be indexed, I, has… Read more Numpy Array Indexing With Other Arrays Yields Broadcasting Error

Basic Python Programming Help Needed Involving Arrays And Random Locations

Consider a 100X100 array. Generate an array of several thousand random locations within such an ar… Read more Basic Python Programming Help Needed Involving Arrays And Random Locations