DOCUMENTATION CalcMe
  • language Translations of this page
    • Translations of this page
    • Català (ca)
    • Dansk (da)
    • Deutsch (de)
    • English (en)
    • Español (es)
    • Français (fr)

  1. Wiris Ecosystem Documentation
  2. CalcMe documentation
  3. Commands
  4. Linear algebra
  5. Canonic vector

en:calc:commands:linear_algebra:canonic_vector

Canonic vector

The k-th canonic vector is the vector with all the inputs equal to zero, except for the k-th component that equals one.

Syntax

canonic_vector(Integer, Integer)

Description

canonic_vector(Integer, Integer)

Given two integers n and k, returns the k-th canonic vector of length n.

Related functions

Constant vector, Diagonal matrix

Table of Contents
  • Syntax
  • Description
  • Related functions
Log In

Copyright © WIRIS 2021. All rights reserved.