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

  If the turbine dissipates heat to its surroundings at the

a turbine operates at steady state with steam flowing through it at a rate of 36 kgmin. the steam enters the turbine at

  The water discharges are 25 cfs to the left 5 cfs to the

for this wye fitting which lies in a horizontal plane the cross-sectional areas at sections 1 2 and 3 are 1 ft2 1 ft2

  The steam exits at a temperature of t220 degrees find the

steam at t1600 degrees c p115 mpa enters a reversible and adiabatic turbine at a flow rate of 300 kgs. the steam exits

  An electric motor of total weight 3330 pounds is mounted on

an electric motor of total weight 3330 pounds is mounted on a simply supported beam with an overhang as shown

  Weight are removed so that the gas expands according to the

the cylinder-piston arrangement contains carbon dioxide at 300kpa and 200 degrees celsius and the volume 0.2m3. weight

  An ideal brayton cycle with regeneration has a pressure

an ideal brayton cycle with regeneration has a pressure ratio of 10. air enters the compressor at 300k and the turbine

  Find the magnitdue of the acceleration when it reaches

a sled is traveling down a curve which can be approxmiated by a parabola y .01x2. find the magnitdue of the

  In a particular nuclear power plant the reactor is used to

in a particular nuclear power plant the reactor is used to heat water to a saturated vapor at 700 psi this vapor is

  What are the forces acting on workpiece

What are the forces acting on workpiece during turning process. how workpiece should be clamp

  What is a plasticizer consider a polymer with a plasticizer

what is a plasticizer? consider a polymer with a plasticizer. how the crystallinity of polymer will be affected by

  Modern automotive paint plants use water-bornefinishes to

modern automotive paint plants use water-bornefinishes to minimize the emission of volatile organiccompounds vocs from

  Determine the angular velocity and angular acceleration

Block B of the mechanism is confined to move within the slot member CD. If AB is rotating at a constant rate of AB = 3rad/s, determine the angular velocity and angular acceleration of member CD at the instant shown.

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