In telecommunication and information theory, broadcasting refers to a method of transferring a message to all recipients simultaneously. Broadcasting can be performed as a high level operation in a program, for example broadcasting Message Passing Interface, or it may be a low level networking operation, for example broadcasting on Ethernet. Please use the numpy-broadcasting tag for questions relating to numpy's array broadcasting behavior.
Questions tagged [broadcasting]
285 questions
2
votes
2 answers
Array Broadcasting without for loop
I have the code
import numpy as np
import math
pos = np.array([[ 1.72, 2.56],
[ 0.24, 5.67],
[ -1.24, 5.45],
[ -3.17, -0.23],
[ 1.17, -1.23],
[ 1.12, …

Barry
- 27
- 5
2
votes
0 answers
Setting up webcam streaming on Amazon EC2 w/ Ubuntu & Wowza
I've been trying for a long time now, to figure out how to set up an application on Wowza that accepts webcam streams (Flash) and broadcast these streams online for many people to connect/see.
Is this at all possible? If yes, do you have any info.…

CoderBang
- 123
- 1
- 7
2
votes
0 answers
Laravel-echo-server, Redis and Ubuntu 18.04.4 [ioredis] Error: connect ETIMEDOUT
I hope someone can help me in solving this problem:
I have my laravel project (7.x) broadcasting without problems on local environment (Laragon 4.0 with redis). I wanted to move it live to make some more accurate test on my VPS with Ubuntu 18.04.4,…

Simone Cabiddu
- 78
- 1
- 9
2
votes
2 answers
Why does broadcasting give an empty tensor?
x = torch.randn(1, 1, 0)
y = torch.randn(4, 1, 1)
(x+y)
tensor([], size=(4, 1, 0))
(x + y).shape
torch.Size([4, 1, 0])
shouldn’t it have been 4, 1, 1, just y?

apostofes
- 2,959
- 5
- 16
- 31
2
votes
0 answers
Looking for an efficient implementation of pytorch matrix multiplcation to prevent large memory usage
torch.matmul in pytorch has functions of broadcasting, which may consume too much memory.I am looking for efficient implementations to prevent excessive memory usage.
For example,the input tensor has size…

Ferret Zhang
- 306
- 3
- 8
2
votes
1 answer
Julia - check elementwise if elements of vector x are in the vector y
I want to check elementwise (or broadcast) if the elements of vector x are in the vector y in Julia like what the function checkin does:
x = ["one", "two", "three", "four"]
y = ["two", "three", "five", "four"]
function checkin(x,y)
for i =…

ecjb
- 5,169
- 12
- 43
- 79
2
votes
2 answers
Broadcasting 3d arrays for elementwise multiplication
Good evening,
I need some help understanding advanced broadcasting with complex numpy arrays.
I have:
array A: 50000x2000
array B: 2000x10x10
Implementation with for loop:
for k in range(50000):
temp = A[k,:].reshape(2000,1,1)
…

torpedo
- 283
- 2
- 15
2
votes
4 answers
How to broadcast and assign a series of values across all columns in a Pandas dataframe?
I know this must be easy but I can't figure it out or find an existing answer on this...
Say I have this dataframe...
>>> import pandas as pd
>>> import numpy as np
>>> dates = pd.date_range('20130101', periods=6)
>>> df = pd.DataFrame(np.nan,…

Bill
- 10,323
- 10
- 62
- 85
2
votes
1 answer
Laravel Pusher exception: "Illuminate\Broadcasting\BroadcastException"
I get "Illuminate\Broadcasting\BroadcastException" when trying to broadcast event. I've checked my .env file - it's set correctly, I'm on localhost so I set 'encrypted' to false aswell, BroadcastServiceProvider is uncommented. Nothing helps.
FULL…

Nicolas
- 33
- 1
- 5
2
votes
1 answer
Laravel 5.4 : Listening For Notifications doesn't work with me
I can't get this code works following (laravel5.4/notifications#broadcast-notifications):
Echo.private('App.User.' + userId)
.notification((notification) => {
console.log(notification.type);
});
Here my code :
app.js…

BKF
- 1,298
- 4
- 16
- 35
2
votes
1 answer
How to configure Channel Authorization for Broadcasting in Laravel 5.3 using Pusher Driver?
Laravel Version: 5.3.*
PHP Version: 5.6.17
Database Driver & Version:
mysql
Description:
According to Laravel 5.3 documentation when broadcasting events on private or presence channels, in the boot method of the BroadcastServiceProvider one must…

António Quadrado
- 1,307
- 2
- 17
- 34
2
votes
3 answers
Pusher and Laravel 5.3 Event Broadcasting
Trying to use Laravel 5.3 with pusher, but it seems its not working correct in my code.
My .env is correct
PUSHER_APP_ID= myappid
PUSHER_KEY= mykey
PUSHER_SECRET= mysecret
This is my 'pusher' configurations in broadcasting.php
'pusher' => [
…

Elcin Hasanov
- 21
- 3
2
votes
1 answer
Laravel echo vue js here method
i have a problem with here method vuejs, laravel echo.
broadcast channel
Broadcast::channel('task.*', function ($user, $taskId) {
$task = Task::find($taskId);
if ($task)
{
return ['id' => $user->id, 'name' => $user->name];
…

AldoZumaran
- 547
- 5
- 23
2
votes
1 answer
numpy: broadcasting into multiple inner products and inverses
I have arrays e, (shape q by l) f (shape n by l), and w (shape n by l), and I want to create an array M where M[s,i,j] = np.sum(w[s, :] * e[i, :] * e[j, :]), and an array F, where F[s,j] = np.sum(w[s, :] * f[s, :] * e[j, :]).
Both are easy enough to…

DathosPachy
- 742
- 1
- 6
- 17
2
votes
2 answers
Audio Broadcasting
I want to do an i-phone application for broadcast audio LIVE over the internet..Anyone please guide me...

Sat
- 1,616
- 3
- 22
- 40