<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by ArlanT on Medium]]></title>
        <description><![CDATA[Stories by ArlanT on Medium]]></description>
        <link>https://medium.com/@arlantengga8?source=rss-fe88b8293bbe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*V-gA8lKdebT9oFUEfd8YZg.jpeg</url>
            <title>Stories by ArlanT on Medium</title>
            <link>https://medium.com/@arlantengga8?source=rss-fe88b8293bbe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:52:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@arlantengga8/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Matrix Operation In Python From Scracth]]></title>
            <link>https://medium.com/@arlantengga8/matrix-operation-in-python-from-scracth-1efe2a7c8fce?source=rss-fe88b8293bbe------2</link>
            <guid isPermaLink="false">https://medium.com/p/1efe2a7c8fce</guid>
            <category><![CDATA[matrix]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[linear-algebra]]></category>
            <dc:creator><![CDATA[ArlanT]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 13:52:35 GMT</pubDate>
            <atom:updated>2026-11-19T13:52:35.721Z</atom:updated>
            <content:encoded><![CDATA[<p>There are many libraries to make matriks operation easier. But for the newbie python programmers, making matriks operation from scracth is very helpful to upgrade python and math skill. This arcticle introduces how to make operation matriks from scracth without library.</p><p><strong>Definition Of Matrix</strong></p><p>Matrix is a rectangular of numbers represent of linear equation with have a numbers properti rows and columns.</p><p>Matrices are commonly written in square brackets,so that an m * n matrix is represented as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/236/1*c_MYbwam9ztMgmW3Zv2Iow.png" /></figure><p>where m represed number of rows and n represed number of columns.</p><p><strong>Make Matrix In Python</strong></p><p>The size of Matrix is defined by rows and columns. We can create a Matrix using list of lists in python.</p><pre> matriks = [[1, 2, 3],<br>    [4, 5, 6],<br>    [7, 8, 9]]<br> print(matriks)<br>#Output: [[1, 2, 3],[4, 5, 6],[7, 8, 9]]</pre><p><strong>Matriks Operation</strong></p><ul><li>Addition Matrix</li></ul><p>Additioon matrix is a simple adding numbers, but addition matrix have a rule: The numbers of rows and columns must be same.</p><pre><br>  # Make Matriks<br>  x = [[1, 3, 1], [1, 0, 0]]<br>  y = [[0, 0, 5], [7, 5, 0]]<br><br>  res = []<br>  for i in range(len(x)):<br>   row = []<br>   for j in range(len(x[0])):<br>       op = x[i][j] + y[i][j]<br>       row.append(op)<br>   res.append(row)<br>#Output: [[1, 3, 6], [8, 5, 0]]</pre><ul><li>Subtraction</li></ul><p>To subtract two matrices, the matrices must have the same order.Subtract is about how to sub each element matrics with same indexing</p><pre>  # Make Matriks<br>  x = [[1, 3, 1], [1, 0, 0]]<br>  y = [[0, 0, 5], [7, 5, 0]]<br>  <br>  res = []<br>  for i in range(len(x)):<br>   row = []<br>   for j in range(len(x[0])):<br>       op = x[i][j] -y[i][j]<br>       row.append(op)<br>    res.append(row)<br>#Output: [[1, 3, -4], [-6, -5, 0]]</pre><ul><li>Scalar Multiplication</li></ul><p>Scalar Multiplication is operation multiply of matrix with a number,every element in matriks multiply with number.</p><pre>  x = [[1, 3, 1], [1, 0, 0]]<br>  scalar = 2<br>  res = []<br>  for i in range(len(x)):<br>   row = []<br>   for j in range(len(x[0])):<br>       op = x[i][j] * scalar<br>       row.append(op)<br>   res.append(row)<br>#Output: [[2, 6, 2], [2, 0, 0]]</pre><ul><li>Matrix Multiplication</li></ul><p>Matrix multiplication is operation to multiply two matrices</p><pre>  x = [[1, 3, 1], [1, 0, 0]]<br>  y = [[0, 0], [7, 5], [5, 0]]<br>  res = [[0 for _ in range(len(y[0]))] for _ in range(len(x))]<br>  for i in range(len(x)):<br>    for j in range(len(y[0])):<br>      for k in range(len(x[0])):<br>        res[i][j] += x[i][k] * y[k][j]<br>#Output: [[26, 15], [0, 0]]</pre><p>Tha’s how to making matriks from scracth in python, it is all for today.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1efe2a7c8fce" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>