Skip to content
Back to skills

Linear Algebra

ASecurity

Tensor Operations

  • 32 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 7, 2026
toolspythonbashangular

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- --skill Linear_Algebra --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Linear Algebra?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Linear Algebra
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mdbabumiamssm-linear-algebra/badge)](https://www.skillsdirectory.com/skills/mdbabumiamssm-linear-algebra)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: 'tensor-operations'
description: 'Tensor Operations'
---


# Tensor Operations

Fundamental linear algebra operations for understanding Transformers and attention mechanisms.

## When to Use This Skill

*   When you need to manually compute Attention mechanisms.
*   For educational purposes to understand "Self-Attention".
*   To creating custom masks for sequence modeling.

## Core Capabilities

1.  **Scaled Dot Product Attention**: `softmax(QK^T / sqrt(d_k))`.
2.  **Causal Masking**: Create lower-triangular masks for GPT-style generation.

## Workflow

1.  **Input**: Query, Key, Value matrices.
2.  **Execute**: Run the script.
3.  **Output**: Attention scores and weighted values.

## Example Usage

**User**: "Compute attention for these matrices."

**Agent Action**:
```bash
python3 Skills/Mathematics/Linear_Algebra/tensor_operations.py
```

Files in this skill

  • README.md1.1 KB
  • SKILL.md863 B
  • matrix_ops.py1.5 KB
  • tensor_operations.py2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.