ML Engineer MasterClass (April) | 2 seats left

Back to Questions

32. Identity and diagonal matrices

easy
GeneralGeneral
senior
Input Signature
ArgumentType
xnp.ndarray
diagnp.ndarray
Output Signature
Return NameType
valuenp.ndarray

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
diagonal-matrix
elementwise-multiplication
linear-algebra
numpy

Similar Questions

Linear Regressionmedium
ml coding
Activation function relueasy
ml coding
Text normalizationmedium
ml coding
28 people are solving this problem
Python LogoPython Editor
Ln 1, Col 1

Input Arguments

Edit values below to test with custom inputs

You need tolog in/sign upto run or submit