chore(i18n,learn): processed translations (#44866)

This commit is contained in:
camperbot
2022-01-22 20:38:20 +05:30
committed by GitHub
parent d039479e66
commit 43a2a0a395
324 changed files with 2907 additions and 2916 deletions

View File

@ -1,6 +1,6 @@
---
id: 599c333915e0ea32d04d4bec
title: Element-wise operations
title: 要素ごとの演算
challengeType: 5
forumTopicId: 302252
dashedName: element-wise-operations
@ -8,29 +8,29 @@ dashedName: element-wise-operations
# --description--
Implement basic element-wise matrix-matrix and scalar-matrix operations.
基本的な要素ごとの matrix-matrix scalar-matrix 演算を実装します。
**Implement:**
**実装:**
<ul>
<li>addition</li>
<li>subtraction</li>
<li>multiplication</li>
<li>division</li>
<li>exponentiation</li>
<li>加法</li>
<li>減法</li>
<li>乗法</li>
<li>除法</li>
<li>累乗法</li>
</ul>
The first parameter will be the operation to be performed, for example, "m_add" for matrix addition and "s_add" for scalar addition. The second and third parameters will be the matrices on which the operations are to be performed.
最初のパラメータは、実行される演算を表します。例えば、行列の加法では"m_add"、スカラーの加法では"s_add"です。 2番目と3番目のパラメータは、演算の対象となる行列を表します。
# --hints--
`operation` should be a function.
`operation` という関数です。
```js
assert(typeof operation === 'function');
```
`operation("m_add",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[2,4],[6,8]]`.
`operation("m_add",[[1,2],[3,4]],[[1,2],[3,4]])` `[[2,4],[6,8]]` を返します。
```js
assert.deepEqual(
@ -52,7 +52,7 @@ assert.deepEqual(
);
```
`operation("s_add",[[1,2],[3,4]],2)` should return `[[3,4],[5,6]]`.
`operation("s_add",[[1,2],[3,4]],2)` `[[3,4],[5,6]]` を返します。
```js
assert.deepEqual(
@ -71,7 +71,7 @@ assert.deepEqual(
);
```
`operation("m_sub",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[0,0],[0,0]]`.
`operation("m_sub",[[1,2],[3,4]],[[1,2],[3,4]])` `[[0,0],[0,0]]` を返します。
```js
assert.deepEqual(
@ -93,7 +93,7 @@ assert.deepEqual(
);
```
`operation("m_mult",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,4],[9,16]]`.
`operation("m_mult",[[1,2],[3,4]],[[1,2],[3,4]])` `[[1,4],[9,16]]` を返します。
```js
assert.deepEqual(
@ -115,7 +115,7 @@ assert.deepEqual(
);
```
`operation("m_div",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,1],[1,1]]`.
`operation("m_div",[[1,2],[3,4]],[[1,2],[3,4]])` `[[1,1],[1,1]]` を返します。
```js
assert.deepEqual(
@ -137,7 +137,7 @@ assert.deepEqual(
);
```
`operation("m_exp",[[1,2],[3,4]],[[1,2],[3,4]])` should return `[[1,4],[27,256]]`.
`operation("m_exp",[[1,2],[3,4]],[[1,2],[3,4]])` `[[1,4],[27,256]]` を返します。
```js
assert.deepEqual(
@ -159,7 +159,7 @@ assert.deepEqual(
);
```
`operation("m_add",[[1,2,3,4],[5,6,7,8]],[[9,10,11,12],[13,14,15,16]])` should return `[[10,12,14,16],[18,20,22,24]]`.
`operation("m_add",[[1,2,3,4],[5,6,7,8]],[[9,10,11,12],[13,14,15,16]])` `[[10,12,14,16],[18,20,22,24]]` を返します。
```js
assert.deepEqual(