# What are the dimensional requirements for matrix multiplication?

Consider two matrix as ${A}^{m \times n}$ and ${B}^{p \times q}$
Then $A B$ will be a matrix of dimensions $m \times q$ if $n = p$.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6930744,"math_prob":1.0000093,"size":465,"snap":"2019-51-2020-05","text_gpt3_token_len":96,"char_repetition_ratio":0.17136659,"word_repetition_ratio":0.16,"special_character_ratio":0.2,"punctuation_ratio":0.048780486,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99987125,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-16T02:55:47Z\",\"WARC-Record-ID\":\"<urn:uuid:7914c82b-62df-4c43-9b01-6818375d63c5>\",\"Content-Length\":\"33662\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:657598df-6e2b-40cc-a2c1-c5f0991f72ca>\",\"WARC-Concurrent-To\":\"<urn:uuid:a425a7de-a4d3-4af1-8551-d6dcf602fc3b>\",\"WARC-IP-Address\":\"54.221.217.175\",\"WARC-Target-URI\":\"https://socratic.org/questions/what-are-the-dimensional-requirements-for-matrix-multiplication\",\"WARC-Payload-Digest\":\"sha1:LO2HHQB33WQQTRTCXF55ZKM65MN7STIW\",\"WARC-Block-Digest\":\"sha1:F4MOYERHEIUXUKVTY2ZKCYQA6BDVUR5R\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575541315293.87_warc_CC-MAIN-20191216013805-20191216041805-00360.warc.gz\"}"}