w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
identity

identity(n) Class Public methods Creates an n by n identity matrix. Matrix.identity(2) => 1 0 0 1 unit I

new

new(rows, column_count = rows[0].size) Class Public methods ::new is private; use ::rows, columns, [], etc⦠to create.

row_vector

row_vector(row) Class Public methods Creates a single-row matrix where the values of that row are as given in row. Matrix.row_vector([4,5,6]) => 4 5 6

rows

rows(rows, copy = true) Class Public methods Creates a matrix where rows is an array of arrays, each of which is a row of the matrix. If the optional argument copy is false, use the given arrays as the internal structure of the matrix without copying. Matrix.rows([[25, 93], [-1, 66]]) => 25 93 -1 66

scalar

scalar(n, value) Class Public methods Creates an n by n diagonal matrix where each diagonal element is value. Matrix.scalar(2, 5) => 5 0 0 5

unit

unit(n) Class Public methods Alias for: identity

zero

zero(row_count, column_count = row_count) Class Public methods Creates a zero matrix. Matrix.zero(2) => 0 0 0 0

*

*(m) Instance Public methods Matrix multiplication. Matrix[[2,4], [6,8]] * Matrix.identity(2) => 2 4 6 8

**

**(other) Instance Public methods Matrix exponentiation. Equivalent to multiplying the matrix by itself N times. Non integer exponents will be handled by diagonalizing the matrix. Matrix[[7,6], [3,9]] ** 2 => 67 96 48 99

+

+(m) Instance Public methods Matrix addition. Matrix.scalar(2,5) + Matrix[[1,0], [-4,7]] => 6 0 -4 12

Popular Articles
PowerTip - a jQuery plugin that creates hover tooltips PowerTip features a very flexible design that is easy to customize, gives you a number of different ways to use the tooltips, has APIs for developers,
Kernel Density Estimation This example shows how kernel density estimation (KDE), a powerful non-parametric density estimation technique, can be used to learn a generative mo
Object:type Object:type Gets the type of the object as a string. Function Synopsis type = Object:type() Arguments None. Returns string type The type as a stri
BlackBerry 10 Configuration BlackBerry 10 Configuration The config.xml file controls an app's basic settings that apply across each application and CordovaWebView instance. This
Tasks Specifies installation tasks for SQLite databases. Hierarchy class \Drupal\Core\Database\Install\Tasksclass \Drupal\Core\Database\Driver\sqlite\Insta


Page 548 of 11844

|< < Prev 545 546 547 548 549 550 551 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions