Community Profile

photo

arvid Martens


Katholieke Universiteit Leuven

Last seen: presque 4 ans il y a Actif depuis 2017

Statistiques

All
  • Thankful Level 1
  • First Answer
  • ASEE Challenge Master
  • Functions I Master
  • Leader
  • Tiles Challenge Master
  • CUP Challenge Master
  • Solver

Afficher les badges

Content Feed

Afficher par

A résolu


First non-zero element in each column
For a given matrix, calculate the index of the first non-zero element in each column. Assuming a column with all elements zero ...

presque 6 ans il y a

Question


Multiple GPU setup slower than single GPU
For my research I have to perform a lot of repetition of the same optimization (for statistics). I already found out that my fit...

presque 6 ans il y a | 1 réponse | 1

0

réponse

Question


parfor load balancing chunksize
I have function that uses a parfor (~100 iteration) evaluating another function. However one of the workers is two times faster ...

environ 6 ans il y a | 2 réponses | 0

2

réponses

Question


Titan V using huge amount of memory
Recently I added a second GPU (titan V) to my workstation. When I try to perform my simulations which use a parpool with each wo...

environ 6 ans il y a | 2 réponses | 0

2

réponses

A répondu
Parfor loop just hangs, CPU usage goes to zero
I noticed that the problem started to occur after I updated the drivers of the GPUs that are being used during the calculations....

environ 6 ans il y a | 1

A résolu


Pentagonal Numbers
Your function will receive a lower and upper bound. It should return all pentagonal numbers within that inclusive range in ascen...

plus de 6 ans il y a

A résolu


Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

plus de 6 ans il y a

A résolu


Recaman Sequence - III
I want to create a Recaman sequence where the nth number will be 1. So from which integer should I start the Recaman sequence? ...

plus de 6 ans il y a

A résolu


Parse me a Lisp
*Description* In Lisp and its variants, function calls are done using parenthesis where the first item in the parenthesis is ...

plus de 6 ans il y a

A résolu


Ned's Queens
A tribute to Cody's five-year anniversary should also celebrate the people behind Cody, and in this particular case, our illustr...

plus de 6 ans il y a

A résolu


Inscribed Pentagon? 2
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...

plus de 6 ans il y a

A résolu


Circumscribed Pentagon?
Building off of <https://www.mathworks.com/matlabcentral/cody/problems/44368 Problem 44368>, your function will be provided with...

plus de 6 ans il y a

A résolu


Pair Primes
Let's define pair primes as follow; * *For 2 digits numbers:* 11 and 17 are pair primes because both of them are 2 digits pri...

plus de 6 ans il y a

A résolu


Hexagonal numbers on a spiral matrix
Put hexagonal numbers in a ( m x m ) spiral matrix and return the sum of its diagonal elements. Formula of hexagonal numbers ...

plus de 6 ans il y a

A résolu


Cache me Outside
The test suite includes a simple recursive Fibonacci sequence generator, but it's terribly inefficient. One simple method for im...

plus de 6 ans il y a

A résolu


Is this a valid Tic Tac Toe State?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

plus de 6 ans il y a

A résolu


Digit concentration in Champernowne's constant
Consider the first 50 digits of Champernowne's constant 0.12345678910111213141516171819202122232425262728293... The...

plus de 6 ans il y a

A résolu


Group-wise Euclidean distance
*Input*: * *x* —— An array of size *n-by-d*, where each row vector denotes a point in a d-dimensional space; * *g* —— A gro...

plus de 6 ans il y a

A résolu


An asteroid and a spacecraft
Imagine a non-relativistic simple situation. Assume positions p0, p1, p2, and p3 are three dimensional Cartesian coordinates...

plus de 6 ans il y a

A résolu


Sums of Distinct Powers
You will be given three numbers: base, nstart, and nend. Write a MATLAB script that will compute the sum of a sequence of both ...

plus de 6 ans il y a

A résolu


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

plus de 6 ans il y a

A résolu


"Cody" * 5 == "CodyCodyCodyCodyCody"
*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

plus de 6 ans il y a

A résolu


Acid and water
Assume that there is a 100 liter tank. It is initially filled with just distilled water. It is continuously drained at R...

plus de 6 ans il y a

A résolu


Number of Even Elements in Fibonacci Sequence
Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

plus de 6 ans il y a

A résolu


Energy of a photon
Given the frequency F of a photon in giga hertz. Find energy E of this photon in giga electron volts. Assume h, Planck's ...

plus de 6 ans il y a

A résolu


How to subtract?
* Imagine you need to subtract a few numbers using MATLAB. * You will not be using eval for this task. * Given two ASCII strin...

plus de 6 ans il y a

A résolu


Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
Given a number _n_, return the terminal value of the number chain formed by summing the square of the digits. According to the P...

plus de 6 ans il y a

A résolu


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...

plus de 6 ans il y a

A résolu


Return the Fibonacci Sequence
Write a code which returns the Fibonacci Sequence such that the largest value in the sequence is less than the input integer N. ...

presque 7 ans il y a

A résolu


Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

presque 7 ans il y a

Charger plus