Linear Algebra

From mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills- · View interactive version

Linear Algebra is an AI agent skill from the GitHub repository mdbabumiamssm/LLMs-Universal-Life-Science-and-Clinical-Skills-. Tensor Operations

How to use this skill

Skill file

<!--

COPYRIGHT NOTICE

This file is part of the "Universal Biomedical Skills" project.

Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu>

All Rights Reserved.

#

This code is proprietary and confidential.

Unauthorized copying of this file, via any medium is strictly prohibited.

#

Provenance: Authenticated by MD BABU MIA

-->


name: 'tensor-operations'

description: 'Tensor Operations'

measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.

allowed-tools:


Tensor Operations

Fundamental linear algebra operations for understanding Transformers and attention mechanisms.

When to Use This Skill

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:

python3 Skills/Mathematics/Linear_Algebra/tensor_operations.py

<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.