Changeset a389e2e in tol


Ignore:
Timestamp:
Nov 30, 2009, 8:24:19 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
2f0a149
Parents:
b15f0f9
Message:

New functions to create sets from matrices

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1746 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/general/grammars/_set.tol

    rb15f0f9 ra389e2e  
    13471347
    13481348
     1349//////////////////////////////////////////////////////////////////////////////
     1350Set Col2Set(Matrix M)
     1351//////////////////////////////////////////////////////////////////////////////
     1352{
     1353  MatSet(Tra(M))[1]
     1354};
     1355//////////////////////////////////////////////////////////////////////////////
     1356  PutDescription(I2(
     1357"Returns a set of real numbers with elements of a column vector",
     1358"Devuelve un conjunto de números reales con los elementos de un vector "
     1359"columna"),
     1360Col2Set);
     1361//////////////////////////////////////////////////////////////////////////////
     1362
     1363//////////////////////////////////////////////////////////////////////////////
     1364Set Row2Set(VMatrix M)
     1365//////////////////////////////////////////////////////////////////////////////
     1366{
     1367  MatSet(M)[1]
     1368};
     1369//////////////////////////////////////////////////////////////////////////////
     1370  PutDescription(I2(
     1371"Returns a set of real numbers with elements of a row vector",
     1372"Devuelve un conjunto de números reales con los elementos de un vector "
     1373"fila"),
     1374Row2Set);
     1375//////////////////////////////////////////////////////////////////////////////
     1376
     1377//////////////////////////////////////////////////////////////////////////////
     1378Set VCol2Set(VMatrix M)
     1379//////////////////////////////////////////////////////////////////////////////
     1380{
     1381  MatSet(VMat2Mat(M,1))[1]
     1382};
     1383//////////////////////////////////////////////////////////////////////////////
     1384  PutDescription(I2(
     1385"Returns a set of real numbers with elements of a column vector",
     1386"Devuelve un conjunto de números reales con los elementos de un vector "
     1387"columna"),
     1388VCol2Set);
     1389//////////////////////////////////////////////////////////////////////////////
     1390
     1391//////////////////////////////////////////////////////////////////////////////
     1392Set VRow2Set(VMatrix M)
     1393//////////////////////////////////////////////////////////////////////////////
     1394{
     1395  MatSet(VMat2Mat(M,0))[1]
     1396};
     1397//////////////////////////////////////////////////////////////////////////////
     1398  PutDescription(I2(
     1399"Returns a set of real numbers with elements of a row vector",
     1400"Devuelve un conjunto de números reales con los elementos de un vector "
     1401"fila"),
     1402VRow2Set);
     1403//////////////////////////////////////////////////////////////////////////////
     1404
     1405//////////////////////////////////////////////////////////////////////////////
     1406Set VMat2Set(VMatrix M)
     1407//////////////////////////////////////////////////////////////////////////////
     1408{
     1409  MatSet(VMat2Mat(M))
     1410};
     1411//////////////////////////////////////////////////////////////////////////////
     1412  PutDescription(I2(
     1413"Converts by rows a matrix in a set of sets of real numbers.",
     1414"Convierte por filas una matriz en un conjunto de conjuntos "
     1415"de reales."),
     1416VMat2Set);
     1417//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.