-
-
Notifications
You must be signed in to change notification settings - Fork 27
Added Transpose Matrix in Every Language Article #330
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
153baa9
Create index.md
DedAvocado 18b73d5
Update and rename projects/Transpose Matrix/index.md to projects/tran…
DedAvocado b6197d4
Update index.md
DedAvocado 0c35e34
Update index.md
DedAvocado 1892ed0
Update index.md
DedAvocado dde5cf0
Update index.md
DedAvocado 4649bb7
Update index.md
DedAvocado f8dd63c
Update index.md
DedAvocado dba180b
Update projects/transpose matrix/index.md
DedAvocado f8a65de
Update index.md
DedAvocado dcf8158
Update index.md
DedAvocado 56ed4b7
Update index.md
DedAvocado 84a5117
Update index.md
DedAvocado 7574f8b
Update index.md
DedAvocado b802454
Update index.md
DedAvocado 0ea4b2b
Update index.md
DedAvocado 6731805
Update projects/transpose matrix/index.md
DedAvocado 6283d53
Update projects/transpose matrix/index.md
DedAvocado 7b2197c
Update projects/transpose matrix/index.md
DedAvocado 78f4cf8
Update authors.yml
DedAvocado 6cadec6
Merge branch 'master' into master
DedAvocado 7be7d6f
Update index.md
DedAvocado a9b69fb
Update index.md
DedAvocado 64a5a7b
Update index.md
DedAvocado 98ce3b3
Update index.md
jrg94 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,6 +226,12 @@ wileymab: | |
I'm just person. | ||
Sitting in front of some code. | ||
Asking it to start working. | ||
|
||
DedAvocado: | ||
name: Pranjal | ||
email: [email protected] | ||
web: | ||
bio: | ||
|
||
fuboki10: | ||
name: Abdelrhman Tarek | ||
|
@@ -234,9 +240,10 @@ fuboki10: | |
bio: | | ||
A Computer Engineering student at Faculty of Engineering Cairo University EG (2022). | ||
Competitive Programmer 🔥. | ||
|
||
anohene1: | ||
name: Isaac Anohene | ||
email: [email protected] | ||
web: isaacanohene.me | ||
bio: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
title: Transpose matrix in Every Language | ||
layout: default | ||
date: 2020-10-08 | ||
last-modified: 2020-10-08 | ||
featured-image: | ||
tags: [transpose-matrix] | ||
authors: | ||
- DedAvocado | ||
--- | ||
|
||
In this article, we'll demonstrate how to find Transpose of a Matrix, its requirements, and how | ||
to test it. | ||
|
||
## Description | ||
|
||
In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix A by producing another matrix, often denoted by Aᵀ. The transpose of a matrix was introduced in 1858 by the British mathematician Arthur Cayley. | ||
|
||
The solution can be generated using nested loops and exchanging the indexes of the matrix. | ||
|
||
## Requirements | ||
Input: | ||
|
||
| 1 | 2 | 3 | | ||
| - |:-:| -:| | ||
| 4 | 5 | 6 | | ||
| 7 | 8 | 9 | | ||
|
||
The following is the expected output: | ||
| 1 | 4 | 7 | | ||
| - |:-:| -:| | ||
| 2 | 5 | 8 | | ||
| 3 | 6 | 9 | | ||
|
||
1. The first matrix is from the given input. | ||
2. The second matrix is the desired output i.e, the transpose of the matrix. | ||
|
||
To execute the program : | ||
```transpose.lang 3 3 "1, 2, 3, 4, 5, 6, 7, 8, 9"``` </br> | ||
Here the first two input numbers indicate the size of the matrix and the next input is the list of numbers to be included in the matrix. | ||
|
||
## Testing | ||
|
||
Verify that the actual output matches the expected output (see [requirements][1]) | ||
|
||
| Description | size1 | size2 | integers | Output | | ||
| - |:-:|:-:|:-:| -:| | ||
| No input | | | | Usage: please enter the dimension of the matrix and the serialized matrix | | ||
| Missing input: Size | | | ```1, 2, 3, 4, 5, 6``` | Usage: please enter the dimension of the matrix and the serialized matrix | | ||
| Missing input: integers | 3 | 3 | | Usage: please enter the dimension of the matrix and the serialized matrix | | ||
| Sample input | 3 | 2 | ```1, 2, 3, 4, 5, 6``` | ```1, 4, 2, 5, 3, 6``` | | ||
|
||
## Articles | ||
|
||
{% include article_list.md collection=site.categories.transpose-matrix %} | ||
|
||
[1]: #requirements |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.