Matrices and alpha and beta are scalar values

Assignment Help Mechanical Engineering
Reference no: EM13708890

Write a MATLAB function called zgemm that computes the generalized matrix multiplication alphaAB + betaC using loops, where A, B, and C are matrices and alpha and beta are scalar values. The input order should be (alpha, A, B, beta, C). Check for proper dimensions on each input, report any error and return an empty matrix if they are incorrect. Do not use MATLAB's matrix multiply functions inside this function. Use alpha=0.1, A=[5 7;11 9;0 2], B=[1 2 3 4; 9 8 7 6], C=eye(n,m), beta=0.9 to test zgemm and compare to MATLAB matrix multiply (>>alpha*A*B+beta*C)

Reference no: EM13708890

Questions Cloud

Max theoretical efficiency of a coal fired plant : A conventional coal fired power plant has a thermodynamic efficiency of 30%. If coal burns at 400C, what's the max theoretical efficiency of a coal fired plant.
Piston cylinder closed system-temperature and pressure : A piston cylinder closed system expands from state 1 to state 2 due to heat addition and then is compressed from state 2 to state 3. If this process (1-2-3) is a cycle, what can be said about Temperature (T) and Pressure (P)?
How has the internet affected price considerations : How has the Internet affected price considerations? Analyze several different industries, such as airlines, sales, hotel reservations, and book sales and
Pin-connected structure consists of a rigid beam : A pin-connected structure consists of a rigid beam ABCD and two supporting bars. Bar (1) is an aluminum alloy [E = 70 GPa] with a cross-sectional area of A1 = 2,400 mm2. Bar (2) is a bronze alloy [E = 100 GPa] with a cross-sectional area of A2 = 6,00..
Matrices and alpha and beta are scalar values : Write a MATLAB function called zgemm that computes the generalized matrix multiplication alphaAB + betaC using loops, where A, B, and C are matrices and alpha and beta are scalar values. The input order should be (alpha, A, B, beta, C).
Determine the volumetric flow rates at the inlet and exit : Refrigerant 22 enters an insulated compressor operating at steady state as saturated vap or at -16 C with a mass flow rate of 1.5 kg/s. Refrigerant exits at 7 bar, 70 C. Changes in KE and PE from inlet to exit can be ignored. Determine: (a) the volum..
Separate stream of air with mass flow rate : Steam enters a counter flow heat exchanger operating at stead state at 0.07 MPa with a specific enthalpy of 2431.6 kJ/kg and exits at the same pressure as saturated liquid. The steam mass flow rate is 1.5 kh/min. A separate stream of air with mass fl..
Compression ratio and inlet pressure to give maximum imep : Design an SI engine operating on an four-stroke air-standard cycle using stoichiometric gasoline is to have a maximum cylinder pressure of 11,000 kPa at WOT. Inlet pressure can be 100 kPa without supercharging, or it can be as high as 150 kPa with a ..
Single tape turing machine : Double and Two Tape Turing machines - single tape Turing machine

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Water enters a nozzle with a velocity of 08 ms and exits

water enters a nozzle with a velocity of 0.8 ms and exits with a velocity of 5 ms. the nozzle entrance diameter is 12

  If the air around the thermocouple is at 20degreec and the

a black thermocouple is used to measure the internal temperature of a furnace having black walls. if the air around the

  The structural engineering design section within the

the structural engineering design section within the engineering department of a regional natural gas corporation has

  A pot of 1kg of liquid water is heated on a mountain top

a pot of 1kg of liquid water is heated on a mountain top where the atmospheric pressure is 0.8 bar. if the liquid water

  On an overflow structure of 50 degrees slope the water

on an overflow structure of 50 degrees slope the water depth measured normal to the surface of the structure is 1.2 m 4

  How the unknown constants in the original equation relate

for each of the situations below an equation is proposed as a model to relate an independent variable to a dependent

  What is the percent increase in the air velocity

If the room temperature is 15C and the temperature of the air exiting the hair dryer is 50C, what is the percent increase in the air velocity as it passes through the dryer.

  A well insulated rigid tank with a volume of 04m3 and

a well insulated rigid tank with a volume of 0.4m3 and pressure 150kpa is subject to an internal resistance heater of

  A tank contains 09 m3 of helium at 200 kpa and 20 c

a tank contains 0.9 m3 of helium at 200 kpa and 20 c. estimate the total mass of this gas in kga on earth andb on the

  What is the amount of heat transfer

A rigid tank contains 10 kg of air at 345 kPa and 27 Celsius. The air is now heated until its pressure doubles. What is the volume of the tank? What is the amount of heat transfer?

  Determine the composition of the gas on a mass basis if the

a gas with the following composition by volume n2 - 76 co - 0.002 co2 - 18 so2 100 ppm and the rest moisture is flowing

  Hw much heat is needed to a 03m3 rigid volume containing

how much heat is needed to a 0.3m3 rigid volume containing saturated water vapor at 1000 kpa in order for final

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd